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

Comparing inifinity won't work #125

Open
spira-inhabitant opened this issue Sep 11, 2023 · 1 comment
Open

Comparing inifinity won't work #125

spira-inhabitant opened this issue Sep 11, 2023 · 1 comment

Comments

@spira-inhabitant
Copy link

return (lhs - rhs) < std::numeric_limits<T>::epsilon() &&

If two variables are set to std::numeric_limits<double>::infinity(), == will return false.

@bernedom
Copy link
Owner

Thanks for the heads up, I'll have to look into it how to fix that without adding too much overhead as this operation could happen in very frequently

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