microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.16k stars 6.54k forks source link

Calculator in PowerToys Run regardless of localization #25285

Open shiningflane opened 1 year ago

shiningflane commented 1 year ago

Description of the new feature / enhancement

I propose to perform calculations in PowerToys Run regardless of localization, that is, as a fractional separator use as equal sign "." as well as the sign ",". Because very often it happens that users do not watch the sign, and calculations occur incorrectly. For example, if you type in "0,1/0,000001" the result will be "1" which is incorrect. If you type in "0.1/0.000001", the result will be correct "100000". This problems is very actual for some regions where as a fractional separator can be used both of «.» and «,». Please fix this situation (you can just add the button "take as separator "." and "," in the settings). I hope you will see this appeal and wish further development of the project!

Scenario when this would be used?

This is relevant when using mathematical calculations in PowerToys Run.

Supporting information

No response

stefansjfw commented 1 year ago

There is a setting for calculator plugin to always use English number format for input/output:

image

Would this work for you? /needinfo

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

shiningflane commented 1 year ago

There is a setting for calculator plugin to always use English number format for input/output:

image

Would this work for you? /needinfo

Yeah, i know about it, but it would be very nice if there was the setting that allows use both formats simultaneously.

crutkas commented 1 year ago

the issue are numbers like 1,001. Why: Is this one one hundredth or one thousand and one. mixing and matching here doesn't work for decimal support

shiningflane commented 1 year ago

the issue are numbers like 1,001. Why: Is this one one hundredth or one thousand and one. mixing and matching here doesn't work for decimal support

The key is that no one is typing one thousand like "1,000" when calculating. When I want type one thousand i will type "1000"

crutkas commented 1 year ago

Copy and paste scenarios you are assuming everyone types like you

shiningflane commented 1 year ago

Copy and paste scenarios you are assuming everyone types like you

In my region we use "." and "," just as a fractional number separator and don't use it in integer numbers. Because of that I think it would be nice to have setting for that case.

qhristomirchev commented 1 year ago

The issue I find is that 0.0000005 returns a value of 0,5 which is incorrect. I assume if my decimal separator is comma and a point is my thousands separator then the returned value should be 5, right?