base [-w outfile] numeric_values[s]
Display a number in binary, octal, decimal, and hexadecimal. A number in a radix other then decimal should be preceded by a prefix that indicates its radix as follows: 0x hexadecimal 0 octal 0b binary
Example 4-1. base
>> base 4711 0x4711 04711 0b1000 -------------------------------------------------- hex: 0x1267 decimal: 4711 octal: 011147 binary: 0b1001001100111 -------------------------------------------------- hex: 0x4711 decimal: 18193 octal: 043421 binary: 0b100011100010001 -------------------------------------------------- hex: 0x9c9 decimal: 2505 octal: 04711 binary: 0b100111001001 -------------------------------------------------- hex: 0x8 decimal: 8 octal: 010 binary: 0b1000 --------------------------------------------------