Calculator: Add ability to paste in mod '%' operator

Created on 14 Sep 2019  路  10Comments  路  Source: microsoft/calculator

Right now 5-2 or 5/2 can be pasted into the calculator and it will solve it.
However, if 5 % 2 is pasted, it errors.
However, typing 5 % 2 works just fine.

Similar to issue #299.

How to duplicate the issue:

1) copy 5 % 2 to the clipboard
2) paste in the calculator
3) the message _Invalid input_ appears

How it already works with +, -, *, /

1) copy 5-2 to the clipboard
2) paste in the calculator and press enter
3) the correct value of _3_ shows

User Experience 2 fixed

Most helpful comment

Thank you to everyone that contributed to this. This will be useful for people wanting to get a quick solution when it's on the clipboard. Currently, (3+2) * ((3-1)/2) works but soon with %,^ added most of the core operators are supported. eg. (3+2)^2 * ((3-1)/2) % 4 . Really awesome and thanks again!

All 10 comments

This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.

I am interested to work on this enhancement, i already took a look at the code and found the potential areas of code that need to be changed

Thanks, @Ahmed-Yossef! We certainly appreciate you taking a look at this one. If you have the chance, take a peek at #299 too (the solution _might_ be similar).

@grochocki sure i will have a look too at #299 while fixing this one.

@Ahmed-Yossef Let me know if you have time to work on a fix, otherwise, I already have a PR ready for #299 (very similar to this one) I can adapt to also a fix for this issue.

Rudy

@Ahmed-Yossef Let me know if you have time to work on a fix, otherwise, I already have a PR ready for #299 (very similar to this one) I can adapt to also a fix for this issue.

Rudy
@rudyhuyn
Yes Sure .. No Problem you can do the PR.

I would like to work on this. Is there a scope to work on this or someone is almost done with this ?

Hi @akshaydeep06, a PR is already available for this issue (#682).

Feel free to take a look at it and share feedback!

Closed by #682 馃帀

Thank you to everyone that contributed to this. This will be useful for people wanting to get a quick solution when it's on the clipboard. Currently, (3+2) * ((3-1)/2) works but soon with %,^ added most of the core operators are supported. eg. (3+2)^2 * ((3-1)/2) % 4 . Really awesome and thanks again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrick-compass picture patrick-compass  路  22Comments

MicrosoftIssueBot picture MicrosoftIssueBot  路  20Comments

Diggsey picture Diggsey  路  20Comments

Cerlancism picture Cerlancism  路  23Comments

ialhashim picture ialhashim  路  14Comments