From f767af9a7f48407e01feb373bfa904c78cd6aaac Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 21 Sep 2023 18:22:55 +0800 Subject: [PATCH] fix --- utils/format/price.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }