i32
i32 is a 32-bit signed integer type used in several programming languages and libraries. It represents whole numbers within the range -2,147,483,648 to 2,147,483,647 and requires four bytes of memory. On most platforms, signed 32-bit integers use two's complement representation, which provides a consistent way to perform arithmetic and bitwise operations.
In Rust, i32 is a primitive type and the canonical example of a 32-bit signed integer. The
i32 is commonly used wherever a fixed-width, small-range signed integer is appropriate. It is frequently employed
Overflow and behavior on exceeding the range are language-specific. For example, Rust performs checked overflow in
See also: i8, i16, i64, u32, int32_t, and related fixed-width integer types.