Calculator: Does not support paste of monetary values

Created on 27 Feb 2019  Â·  7Comments  Â·  Source: microsoft/calculator

When pasting input that contains a prefix currency symbol (e.g., $5), the display shows "Invalid input". We should not treat this as invalid input, but instead trim away prefix currency symbols and treat them as numerical values.

User Experience 2 fixed help wanted

Most helpful comment

Awesome! Thanks for taking a look. At a minimum, I think we should support trimming the currency symbols supported by the Windows keyboard:

image

All 7 comments

This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.

Hi I can take this one but can you clarify which currency symbols should be trimmed away? Should all world currency symbols be trimmed and if so is there an official world currency list that should be used for reference?

Awesome! Thanks for taking a look. At a minimum, I think we should support trimming the currency symbols supported by the Windows keyboard:

image

It should also trim commas, ex. 123,456.78.

I believe commas are already trimmed but are then formatted back in at some point. I'm having troubles finding where that is done at the moment. For example if you type in 1000 it will get formatted to 1,000.

@grochocki, I have a question about the behavior here. When pasted into Currency Converter, it feels like the units should be switched to the same monetary unit. Separate issue or same?

@danbelcher-MSFT I like the idea, but let's treat that as a separate issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ialhashim picture ialhashim  Â·  14Comments

MicrosoftIssueBot picture MicrosoftIssueBot  Â·  19Comments

TristanYoung picture TristanYoung  Â·  28Comments

grochocki picture grochocki  Â·  25Comments

Diggsey picture Diggsey  Â·  20Comments