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

Merge pull request !266 from 风狗/N/A
This commit is contained in:
芋道源码 2023-10-14 10:19:37 +00:00 committed by Gitee
commit 889334bc37
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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
}