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

times 计算问题 #28

Closed
caijf opened this issue Dec 19, 2019 · 1 comment
Closed

times 计算问题 #28

caijf opened this issue Dec 19, 2019 · 1 comment

Comments

@caijf
Copy link

caijf commented Dec 19, 2019

NP.times(9999999999999.46, 100) // 999999999999945.9

这个结果是否有问题?

使用 big.js 计算结果为 999999999999946

可以参考我写的 JS浮点数计算测试

@camsong
Copy link
Member

camsong commented Nov 24, 2022

精度要求过高,number-precision 无法保证,建议使用 big.js

@camsong camsong closed this as completed Nov 24, 2022
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

2 participants