Felix name | suffix |
---|---|
tiny | t |
utiny | ut, tu |
short | s |
ushort | us, su |
int | <none>, i |
uint | u, ui, iu |
long | l |
ulong | ul, lu |
vlong | ll, v |
uvlong | ull, llu, uv, vu |
int8 | i8 |
uint8 | u8 |
int16 | i16 |
uint16 | u16 |
int32 | i32 |
uint32 | u32 |
int64 | i64 |
uint64 | u64 |
An integer consists of a prefix, numeric form and suffix. Either the size indicator or signedness indicator 'u' or 'i' can be wholly capitalised (but note that lL is not allowed). The prefix denotes the radix as in the table below:
Prefix | Radix | name | Allowed digits |
---|---|---|---|
0b,0B | 2 | binary | 01 |
0o,0O | 8 | octal | 01234567 |
0d,0D,<none> | 10 | decimal | 0123456789 |
0x,0X | 16 | hexadecimal | 0123456789ABCDEFabcdef |
The numeric form is followed by a non-empty string of allowed digits which may be separated by a single underscore. Each such underscore must be between two digits.
In addition an single underscore is allowed between a non-empty prefix and the numeric form, or the numeric form and a non-empty suffix. Underscores have no semantics and can be used to improve spacing.