Calculator subtractions have odd behaviors, often resulting in results displaying billionths when unnecessary and potentially incorrect. #36956
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.87.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Open the PowerToys Run prompt and perform a subtraction with the first number being a float.
Not sure how exactly to word when it occurs, but it seems to occur when the result is randomly between 10^1 or 10^2 smaller than the original.
Example 1: =1189390.24-1183760.67
Example 2: =123456789.01-123456789.00
Example 3: =100000.01-90000
Example 4: =100000.01-90001
Example 5: =1000.01-990
Example 6: =1000.01-991
✔️ Expected Behavior
Example 1: =1189390.24-1183760.67 should return 5629.57
Example 2: =123456789.01-123456789.00 should return 0.01
Example 3: =100000.01-90000 should return 10000.01
Example 4: =100000.01-90001 should return 9999.01
Example 5: =1000.01-990 should return 10.01
Example 6: =1000.01-991 should return 9.01
❌ Actual Behavior
Example 1: =1189390.24-1183760.67 returns 5629.5700000001
Example 2: =123456789.01-123456789.00 returns 0.0100000054
Example 3: =100000.01-90000 returns 10000.01
Example 4: =100000.01-90001 returns 9999.0100000000
Example 5: =1000.01-990 returns 10.01
Example 6: =1000.01-991 returns 9.0100000000
Other Software
No response
The text was updated successfully, but these errors were encountered: