Calculator plugin in PowerToys Run is subject to floating point precision loss #37828
Labels
Issue-Bug
Something isn't working
Needs-Triage
For issues raised to be triaged and prioritized by internal Microsoft teams
Microsoft PowerToys version
0.89.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Input an expression such as "=2^50" or "=1000000000000000+1" which does not fit within a double.
Observe that the answer is incorrect (using windows calculator or wolfram alpha for the correct result).
✔️ Expected Behavior
"=2^50" should return the correct value: 1125899906842624
"=1000000000000000+1" should return the correct value: 1000000000000001
❌ Actual Behavior
"=2^50" returns 1125899906842620
"=1000000000000000+1" returns 1000000000000000
Other Software
No response
The text was updated successfully, but these errors were encountered: