修复 floatToFixed2 函数某些情况下计算结果为零 Closes #I8671C

Signed-off-by: 风狗 <909275705@qq.com>
(cherry picked from commit aa5f27bec7)
This commit is contained in:
风狗 2023-10-08 08:26:07 +00:00 committed by shizhong
parent a06369d427
commit a2c4cb22f4

View File

@ -205,6 +205,9 @@ export const floatToFixed2 = (num: number | string | undefined): string => {
case 1:
str = f.toString() + '0'
break
case 2:
str = f.toString()
break
}
return str
}