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

Bug: 无法正确判断浮点数的倍数关系 #44

Closed
shigma opened this issue May 5, 2023 · 0 comments
Closed

Bug: 无法正确判断浮点数的倍数关系 #44

shigma opened this issue May 5, 2023 · 0 comments

Comments

@shigma
Copy link
Owner

shigma commented May 5, 2023

QQ图片20230506004736

这里的逻辑对于 data=2.3,step=0.1 仍然会抛出错误,因为 % 的误差大于 Number.EPSILON

@shigma shigma changed the title Bug: 无法正确判断整数 Bug: 无法正确判断浮点数的倍数关系 May 5, 2023
@shigma shigma closed this as completed in ef103f5 May 5, 2023
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