diff --git a/app/utils/convert.go b/app/utils/convert.go index 78d7f4b..41d8306 100644 --- a/app/utils/convert.go +++ b/app/utils/convert.go @@ -271,6 +271,7 @@ func ByteToFloat64(bytes []byte) float64 { } func Float64ToStr(f float64) string { + f = float64(int(f*100)) / 100 return strconv.FormatFloat(f, 'f', 2, 64) } func Float64ToStrPrec1(f float64) string {