Emacs: Convert Hexadecimal to Decimal
Here's how to convert hexadecimal/decimal in emacs, interactively.
Decimal to Hexadecimal
To convert Decimal to Hexadecimal, just type the decimal number, then Alt+x eval-last-sexp
emacs prints result in Emacs: Messages Buffer
Sample output:
255 (#o377, #xff)
means 255 in hexadecimal is ff
Hexadecimal to Decimal
To convert Hexadecimal to Decimal, type
#x
followed by the
hexadecimal,
then Alt+x eval-last-sexp
emacs prints result in Emacs: Messages Buffer