-
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
[PT Run] Calculator interprets comma used as number separator as decimal separator #17300
Comments
Unfortunately, something that can be done so that the number isn't interpreted together is separating the commas from function calling by spaces, like |
what about using |
Perhaps doing a pass where we'd convert |
That's my idea.
Don't think so. Let's ask google. 😂 |
https://en.m.wikipedia.org/wiki/Decimal_separator says only comma or dot is used per standard |
do you think this should be a setting? |
It could be a setting, turned off by default. |
I don't. |
The settings would be about converting intput from culture and then another one to convert output to culture, as discussed here: #17381 |
@jaimecbernardo |
I wonder. I think people will still expect the calculator to take "." 🤷 This sounds like so many settings though. |
I thought on two settings without some combinations of dot and comma:
We can add an example input and output to the description of the settings. I am from Germany and wonder how the input with local format has to be. 😅 |
Sounds good. I think we won't even need to run "translation" functions in that case, since Mages already works with the English format. (Wonder if english-US should be specified) |
@Jay-o-Way |
I'm not a fan of so many settings. But that's personal. |
Released with 0.59.0 |
Microsoft PowerToys version
0.56.2
Running as admin
Area(s) with issue?
PowerToys Run
Steps to reproduce
Typing
max(1,2)
.✔️ Expected Behavior
Expected result:
2
as this is the highest number.❌ Actual Behavior
Actual result:
1.2
(1,2) because in Germany we use,
as decimal separator.For example pow work only if I have at least three numbers like
pow(3,3,3)
.Other Software
No response
The text was updated successfully, but these errors were encountered: