Glossary › Developer terms
Fixed-width integers (u8, i64)
Whole numbers stored in a set number of bits. u8 is unsigned 8-bit, i64 is signed 64-bit.
A u8 holds 0 to 255. Put 300 in and it wraps around to 44. A negative number in an unsigned type shows its two's-complement pattern. Ratio shows what the type would hold.
In Ratio
| You type | Ratio shows |
|---|---|
300 in u8 | 44 |
-1 in hex u8 | 0xFF |