修复 floatToFixed2 函数某些情况下计算结果为零 Closes #I8671C
Signed-off-by: 风狗 <909275705@qq.com>
This commit is contained in:
parent
04a94ad941
commit
aa5f27bec7
@ -205,6 +205,9 @@ export const floatToFixed2 = (num: number | string | undefined): string => {
|
|||||||
case 1:
|
case 1:
|
||||||
str = f.toString() + '0'
|
str = f.toString() + '0'
|
||||||
break
|
break
|
||||||
|
case 2:
|
||||||
|
str = f.toString()
|
||||||
|
break
|
||||||
}
|
}
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user