Number Bases #
Shell supports numbers in any base.
Notation | Description |
---|---|
number | By default uses decimal (base 10) |
0number | In arithmetic expressions, numbers with a leading 0 are considered octal |
0xnumber | Hexadecimal notation |
base#number | number is in base |
Specifying Different Number Bases