We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Subtracting decimals should round properly. Eg,
0.2 - 0.3 = -0.1
When subtracting decimals, if the subtrahend is larger than the minuend, the difference will be rounded improperly.
0.2 - 0.3 = -0.09999999999999998
Weirdly enough it works properly with the tenth less in both the minuend and the subtrahend: 0.1 - 0.2 = -0.1
0.1 - 0.2 = -0.1
Probably just the mathfloor/mathceiling
See above
The calculator gives an incorrect difference, which is important for accuracy
Tested on both Arch Linux desktop and Arch Linux Arm on Pinephone
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Subtracting decimals should round properly. Eg,
0.2 - 0.3 = -0.1
Current Behavior
When subtracting decimals, if the subtrahend is larger than the minuend, the difference will be rounded improperly.
0.2 - 0.3 = -0.09999999999999998
Weirdly enough it works properly with the tenth less in both the minuend and the subtrahend:
0.1 - 0.2 = -0.1
Possible Solution
Probably just the mathfloor/mathceiling
Steps to Reproduce (for bugs only)
See above
Context
The calculator gives an incorrect difference, which is important for accuracy
Environment
Tested on both Arch Linux desktop and Arch Linux Arm on Pinephone
The text was updated successfully, but these errors were encountered: