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

cast number as float32 to avoid rounding error #610

Closed

Conversation

daisy1754
Copy link

fixes #609 by casting things as float32 when one of the comparison is float32.
One caveat is this can cause unexpected results if the other comparison target is larger than float32.max but I assume that's rare

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

Successfully merging this pull request may close these issues.

Cast IntegerNode to float32 in operations like f32 == 1.5
2 participants