Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问下作者涉及到大数计算精度问题如何解决的 #4

Open
liuguangsen0409 opened this issue Dec 13, 2021 · 0 comments
Open

Comments

@liuguangsen0409
Copy link

liuguangsen0409 commented Dec 13, 2021

项目中有一些场景,根据汇率计算金额,数据长度可能超过 15 位,在进行四则运算时超出了 js 的整数最大范围,同时 js 小数四则运算存在精度问题,问下作者是怎么解决的,感谢

没看到作者用一些 mathjs 或者 numeral 这种库,这种库可以解精度问题,但是超大数还是不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant