-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
number calculation error in powertoys run #28085
Comments
I think this is an issue with the external dependency "Mages" since that is used in the background to compute the result. Mind if you can check @Jay-o-Way? |
I guess, now you pinged both😅 |
This os caused by the number format used in mages. |
@htcfreek Can you add the "External Dependency" label? |
This is still mage, this is a signed vs unsigned issue. |
It is very very very difficult to troubleshoot problems caused by calculator errors!!!! I think the calculator should be disabled until the bug has been fixed. |
Microsoft PowerToys version
0.72.0
Installation method
GitHub, PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
=2^50
✔️ Expected Behavior
expected answer is 1125899906842624
❌ Actual Behavior
actual answer is 1125899906842620
actually, any answer of 2^x would not be multiply of 10.
under any x >= 50, answer from powertoys run will be a wrong answer.
I guess the floating-point number introduced errors.
But if the error could not be avoided, users should be notified explicitly on the UI.
Other Software
windows calculator(11.2210.0.0): 1,125,899,906,842,624
python 3.8.10: python -c "print(2**50)" shows 1125899906842624
The text was updated successfully, but these errors were encountered: