[PT Run] Calculate numbers in binary and hexadecimal #4690
Labels
Idea-Enhancement
New feature or request on an existing product
Product-PowerToys Run
Improved app launch PT Run (Win+R) Window
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Run-Plugin
Things that relate with PowerToys Run's plugin interface
Summary of the new feature/enhancement
PT Run is already my goto way for doing small calculations. However I quite often need to do calculations, as well as conversions with different positional systems (mainly hex and binary).
It would be great if the built in calculator would support hex numbers by using the
0xHH
notations and binary numbers by using the0bXX
notation. The result could be presented in the same system that is used in the calculation. If the calculation is mixing systems (for example hex and decimal), the result might default to decimal instead.A conversion could also be implemented by using a notation similar to python-like casts:
hex(some_numer)
,bin(some_number)
,dec(some_number)
.Some possible calculation examples using the proposed system:
0xff + 0b100000000
->511
hex(0xff + 0b100000000
) ->0x1ff
bin(0xac)
->0b10101100
hex(674)
->0x2a2
The text was updated successfully, but these errors were encountered: