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

Calculator subtractions have odd behaviors, often resulting in results displaying billionths when unnecessary and potentially incorrect. #36956

Open
tewan opened this issue Jan 19, 2025 · 0 comments
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@tewan
Copy link

tewan commented Jan 19, 2025

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
Image

Example 2: =123456789.01-123456789.00
Image

Example 3: =100000.01-90000
Image

Example 4: =100000.01-90001
Image

Example 5: =1000.01-990
Image

Example 6: =1000.01-991
Image

✔️ 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

@tewan tewan added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant