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

计算无限循环小数的问题 #29

Closed
caijf opened this issue Dec 22, 2019 · 2 comments
Closed

计算无限循环小数的问题 #29

caijf opened this issue Dec 22, 2019 · 2 comments

Comments

@caijf
Copy link

caijf commented Dec 22, 2019

NP.times(NP.times(1/3, 10), 3) // 9.999999999999998
NP.times(7/3, 3) // 7.000000000000001

这种有什么解决方案吗?

@rickyrui
Copy link

round一下

@camsong
Copy link
Member

camsong commented Aug 16, 2021

没有好的解法

@camsong camsong closed this as completed Aug 16, 2021
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

3 participants