-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Digit grouping for large numbers - PowerToys Run's Calculator and Unit Converter plugins #16248
Comments
@jaimecbernardo So this has to be discussed. |
To what details did you get? I think some code in there ends up trying to use the defined number culture setting, right? |
There is a second format type modifier that has to be set to "N" (=Number). But that causes results like I had the code with |
+1 for this idea, working with large numbers on PowerToys Calculator is really hard and separators on every 3 digits would improve the UX a lot |
...
https://en.wikipedia.org/wiki/ISO_31-0#Numbers or @jaimecbernardo @crutkas Maybe we should follow this. Result seems to be the same as what the page @htcfreek linked to, shows: separators (for large numbers) will be a space. Note that, currently, a space is interpreted as an implicit multiplication. I think it's related to ToString(String, IFormatProvider) and NumberFormatInfo. |
The thin space is the answer |
Could this issue be prioritized? Seems like a low hanging improvement? |
@crutkas @jaimecbernardo |
Description of the new feature / enhancement
Currently, when you use the Calculator or Unit Converter plugins for PowerToys Run, if the result is a large number, it will display all the digits of that number in one string without any spaces.
For example, try typing "2 megatonne in kg" in PowerToys Run and you'll get 2000000000 kg. This is a number that is very annoying to parse for a human since there are no spaces or commas every three digit, like there are when using Window's calculator app.
It would be great if the Calculator/Unit Converter plugins had an option to show results with the digits grouped in groups of 3. Ideally, this option would also let us choose what our separating character is (a space, a comma, or maybe whatever we want).
Another important factor is that some people might want the result displayed with a separator character but want the result added to the clipboard without said character, as some other programs that can use that result might not accept a string with the separator character (for example, Google Sheets sometimes won't accept numbers that are comma-separated)
Scenario when this would be used?
I always use PowerToys Run to make calculations/unit conversions instead of using the calculator as it's just MUCH faster to alt+space and type the equation than going to fetch the calculator app.
But parsing the results when there are lots of digits can waste that productivity improvement and ends up making using the Calculator/Unit Converter plugins a "trap" since the time it took me to count the number of 0s ended up making the use of PowerToys Run not worth it
Supporting information
See how Window's own Calculator app shows results in a much more readable way
The text was updated successfully, but these errors were encountered: