cast-to-base - Convert a number of one base to another.
cast to-base
[options] value base
Convert a number of one base to another.
--base-in
base
The base of the input number. Available options:
10, d, dec, decimal
16, h, hex, hexadecimal
{{#include common-options.md}}
-
Convert the decimal number 64 to hexadecimal
cast to-base 64 hex
-
Convert the hexadecimal number 100 to binary
cast to-base 0x100 2
Note: The --base-in parameter is not enforced but will be needed if the input is ambiguous.