Integers
Unsigned integers
The minimum value for all unsigned integers is by definition 0
, so only max value is listed here
bits | max | max (exact) |
---|---|---|
8 | $2^8 - 1$ | 255 |
16 | $2^16 - 1$ | |
32 | $2^32 - 1$ | 4,294,967,295 |
64 | $2^64 - 1$ | |
128 | $2^128 - 1$ |
Signed integers
bits | min | min (exact) | max | max (exact) |
---|---|---|---|---|
8 | $-2^7$ | $2^7 - 1$ | ||
16 | $-2^15$ | $2^15 - 1$ | ||
32 | $-2^31$ | $2^31 - 1$ | 2,147,483,647 | |
64 | $-2^63$ | $2^63 - 1$ | ||
128 | $-2^127$ | $2^127 - 1$ |