diff --git a/utils/format/price.go b/utils/format/price.go index 23603452..af736079 100644 --- a/utils/format/price.go +++ b/utils/format/price.go @@ -15,6 +15,6 @@ func CentitoDollar(price int64, remainFloatPoint ...uint) string { // 厘转美元 func CentitoDollarStr(price float64) string { - s := "%.2f" + s := "%0.2f" return fmt.Sprintf(s, price/float64(1000)) }