How can I convert hexadecimal to decimal numbers in Emacs calc? For example, if I enter FF
, I want it to convert it to 255
.
UPDATE: How do I get the reverse operation, turn base 10 to base 16?
You can enter any number in the format <base>#<number>
. Example: 16#FF
is immediately converted to 255
.
For the reverse, you need to set the output display mode. In this example, d
r
16
RET sets the display to base 16. Set it to base 10 to get the default behaviour again.
By the way, you can also Read The Fine ManualTM: GNU Emacs Calc Manual.
Svante answered your question, but I'd like to add that the Radix Display Mode change has a quicker keystroke:
d
6
d
0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With