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.

Ask AI about this page:ChatGPTClaudePerplexityAI ModeGrokMarkdown

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 typeRatio shows
300 in u844
-1 in hex u80xFF

Related

Hexadecimal · Bitwise operators · All terms

Try Ratio free for 7 days