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

use precise hex float value for CEIL #10

Merged
merged 1 commit into from Aug 8, 2022

Conversation

jmcwilliams403
Copy link
Contributor

this value is equivalent to tacking an extra 4 at the end of the original 0.9999999, and the ceil methods that use this new value are successful for inputs as small as 0x1p-24 (IEEE machine epsilon)

this value is equivalent to tacking an extra 4 at the end of the original 0.9999999, and the ceil methods that use this new value are successful for inputs as small as 0x1p-24 (IEEE machine epsilon)
Copy link
Owner

@tommyettinger tommyettinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, this is indeed closer to 1.0. I think I got CEIL from libGDX...

@tommyettinger tommyettinger merged commit a6008b4 into tommyettinger:main Aug 8, 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

Successfully merging this pull request may close these issues.

None yet

2 participants