package main import ( "fmt" "github.com/shopspring/decimal" ) func main() { price, _ := decimal.NewFromString("128") fmt.Println(price.Float64()) }