babel-plugin-addition-precision
v1.2.6
Published
Solving the problem of decimal point precision
Downloads
1
Readme
babel-plugin-addition-precision
usage
npm i babel-plugin-addition-precision -D
before
0.1 + 0.2 = 0.30000000000000004;
0.3 + 0.6 = 0.8999999999999999;
0.4 + 1.3 = 1.7000000000000002;
after
0.1 + 0.2 = 0.3;
0.3 + 0.6 = 0.9;
0.4 + 1.3 = 1.7;