Numbers can be written in a variety of forms:
- Base 10
- Numbers without a radix are assumed to be base 10.
- Examples:
100
,-50
,64
,0
- Base 16
- Indicated by a
0x
prefix. - Examples:
0x01
,0x02000
- Indicated by a
- Base 2
- Indicated by a
0b
prefix. - Examples:
0b1001
,0b0000101100110
- Indicated by a
Numbers may contain separators (underscores):
100_000
0x0_20_00
0b1010_0011