Skip to content

ssssyoki/babel-plugin-addition-precision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

处理js小数加法运算精度问题

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published