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

5 Lack of precision in integer truncation #7

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Conversation

Republicof1
Copy link
Contributor

This change replaces 27 cases of bitwise OR 0 { x = (n | 0) } with Math library truncatoin { Math.trunc(n) } to ensure the a 64bit int output rather than a 32bit int that the bitwise method causes.

27 cases of x = (n | 0) replaced with x = Math.trunc(n) rsolving in 64bit int rather than 32bit version.
@pahjbo pahjbo linked an issue Sep 25, 2024 that may be closed by this pull request
note for jauA2tf the number of decimal places requested is 11 - this is beyond what the java version could support.
@pahjbo pahjbo merged commit 42dd5de into main Sep 25, 2024
1 check passed
@pahjbo pahjbo deleted the 5-lack-of-precision branch October 4, 2024 10:59
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.

Lack of precision in integer truncation
2 participants