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

Make roundToRealPixels round to 0 pixels on very small inputs #130

Merged

Conversation

RedEpicness
Copy link
Contributor

Issues arose when -3.0517578E-5 was being rounded to -0.3333 pixels (scale factor 3). In the case of really small inputs (often caused by floating point imprecision) the method should output 0.

@Johni0702 Johni0702 merged commit 22db718 into master Nov 28, 2023
1 check passed
@Johni0702 Johni0702 deleted the fix/roundtorealpixels-should-round-very-small-numbers-to-0 branch November 28, 2023 15:01
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.

2 participants