Problem Statement
Calculator currently supports pasting in prefixed/suffixed values in programmer mode if the value is considered valid for the current radix (hex/dec/bin/oct).
Evidence or User Insights
This is a small quality-of-life improvement when using programmer mode.
Proposal
Upon paste in programmer mode, if invalid input is detected, attempt to detect if the value is valid in a radix other than the current one, and if so, automatically switch to that radix and accept pasted value.
_Prefixes_
_Suffixes_
Goals
Non-Goals
Low-Fidelity Concept
N/A (use existing UI; just switch radix when appropriate)
Requested Assignment
I'm just suggesting this idea. I don't want to implement it.
This is your friendly Microsoft Issue Bot. I created this issue automatically as requested by a team member.
Can you give a more complete list of accepted prefixes / suffixes / formats? This list should be examined for conflicts, for example would 10d mean "ten decimal" or 0x010D
I feel the mode shouldn't be changed but the number converted, eg pasting 2#011 while in DEC radix should paste as 3, rather than switching to binary.
Should pasting ABC assume HEX radix?
Should pasting 9 assume DEC radix?
This pitch looks like it has everything it needs for review. In the meantime, we'll keep this idea open for discussion so the community has the chance to provide feedback. Check out our New Feedback Process for more info on the user-centered process we follow for new feature development.
We reviewed the pitch and would love to move forward with it. Since the idea is fairly straightforward and is entirely captured by the proposal, we can move this straight into production.
Going to try this - will post questions here if I run into anything, please reply if this is the right place
Great! Thanks for picking this up, @Tadaboody.
anybody working on this ?
anybody working on this ?
@Tadaboody said that they were, but we haven't seen a PR yet. Are you still working on it @Tadaboody?
Got a bit intimidated after playing around with the code and didn't get around to implementing it - it's open if anyone else wants to tackle it
Ah, sorry to hear that @Tadaboody. Thanks for taking a look anyway. @Ahmed-Yossef, if you are still interested in trying this one out, it is yours.
If I knew more about C++ than my small exploration into Arduino, I'd love to help out! But I'm 100% certain I'm going to break something if I try.
Another suggestion to this would be to detect prefixes as they're being typed, as in 0b1101 would automatically switch to decimal as soon as 0b is detected, and if a hex value is recognised beyond the b, automatically switch to hex, as in 0b1101F? Maybe the latter is unnecessary because radix prefixes are pretty common among programmers/binary-users, and as such, it wouldn't occur...
The only exception to the prefix rule would be octal, where 0o (zero and letter O) would be a prefix, rather than just 0?
Most helpful comment
Going to try this - will post questions here if I run into anything, please reply if this is the right place