Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: PowerToys Run: Convert between HEX, DEC, OCT and BIN etc #13905

Open
StrangeCalibur opened this issue Oct 19, 2021 · 3 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface

Comments

@StrangeCalibur
Copy link

Just like when doing other basic calculations using PowerToys Run, it would be nice to be able to convert quickly between (for my uses), HEX and DEC. This functionality is included in the preinstalled calculator.

image

The way it works in my head is the following:

  1. HEX copied
  2. alt space to open RUN
  3. Paste HEX
  4. Type CTD (Convert to DEC)
  5. Press enter to save to clipboard

I am not sure as to how many people this would find this useful however as it would be a great boon to my work flow in work I would be happy to take on responsibility for developing and implementing this feature if others think it would be useful.

@ghost ghost added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Oct 19, 2021
@franky920920
Copy link
Contributor

Related to #3272

@franky920920 franky920920 added Run-Plugin Things that relate with PowerToys Run's plugin interface Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window labels Oct 20, 2021
@ThubLives
Copy link

I should point out that at this point, the calculator mode supports number entry as hex in the 0x<hex chars> format, which means that all you have to do to convert it to decimal is prefix it with 0x:

0xabcdef01

However, I don't think there is a way to convert from decimal to any other number system. Also, hex values longer than 32-bits seem to be handled a bit unpredictably.

@crutkas crutkas removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Apr 29, 2023
@AdrianSchneble
Copy link

In addition to @ThubLives comment: 0b* can also be used to convert binary to decimal, e.g. 0b1001 = 9. However, I also don't know of a way to do the reverse (perhaps 9b0 = 1001 or 90x0 = 5A would be practical solutions if this were to be implemented, but I don't think there's a way to do this right now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface
Projects
None yet
Development

No branches or pull requests

5 participants