efwGrp/efw3.X

double型データのフォーマット結果がおかしい

Closed this issue · 1 comments

-----取得データ-----
aaa=-6.245004513516506e-17

-----aaa.format("0.000")-----
bbb=new Number(aaa.format("0.000"))
結果
0
----------.format("0.0%")-----
ccc=bbb.format("0.0%").replace(/%/,"")
結果
"-0.0"

さすが、これはしょうがないと思う。保留。