fix:基础信息

This commit is contained in:
momo
2023-09-21 14:26:14 +08:00
parent e01884cce6
commit 1605da27bf
4 changed files with 29 additions and 14 deletions

View File

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