This commit is contained in:
laodaming 2023-09-21 18:22:55 +08:00
parent 949feb431c
commit f767af9a7f

View File

@ -15,6 +15,6 @@ func CentitoDollar(price int64, remainFloatPoint ...uint) string {
// 厘转美元 // 厘转美元
func CentitoDollarStr(price float64) string { func CentitoDollarStr(price float64) string {
s := "%.2f" s := "%0.2f"
return fmt.Sprintf(s, price/float64(1000)) return fmt.Sprintf(s, price/float64(1000))
} }