-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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 result are wrong if using . instead of , for decimals #22905
Comments
@ternium1 |
@htcfreek again, it's not the decimal that is the problem, it's the leading zeros that come after it. They get clipped off, so the engine always calculates 100*0.1 |
Thanks for your message. This is a Duplicate of an other issue. Additional comments may be added there. /dup #19741 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@Jay-o-Way I can reproduce it in the exact other way than reported. And that makes sense as I changed the input format to en-us. |
Microsoft PowerToys version
0.65.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Execute a simple calculation in Powertoys run involving a decimal number (for example 100*0.01) and using
.
as the decimal separator✔️ Expected Behavior
1000.01 should output 1 with the comma or the dot as a decimal separator. However, 1000,01 works fine.
❌ Actual Behavior
1000.000000001 outputs 10, 1000.1 also outputs 10 however 100*0,01 outputs the correct result (1)
Other Software
No response
The text was updated successfully, but these errors were encountered: