Integer data types
Applicable receivers: All receivers
The INTEGER data types (CHAR, SHORT, and LONG) can be signed or unsigned. They are unsigned by default. All integer data types use two’s complement representation. The table below lists the integer data types.
Type |
# of bits |
Range of values (Signed) |
(Unsigned) |
---|---|---|---|
CHAR |
8 |
–128 to 127 |
0 to 255 |
SHORT |
16 |
–32768 to 32767 |
0 to 65535 |
LONG |
32 |
–2147483648 to 2147483647 |
0 to 4294967295 |