Int32
Type-safe signed 32-bit integers with two’s complement encoding and EVM SDIV/SMOD semantics.Overview
Brandednumber type representing signed 32-bit integers (-2,147,483,648 to 2,147,483,647). Uses two’s complement representation for negative values and implements EVM signed division/modulo semantics.
Quick Start
- Basic Operations
- Two's Complement
- EVM Semantics
- Comparison & Sign
Two’s Complement Encoding
Negative values use two’s complement representation:
Bit 31 is the sign bit:
- 0 = positive (0 to 2,147,483,647)
- 1 = negative (-2,147,483,648 to -1)
Constants
Constructors
Conversions
Arithmetic
Bitwise Operations
Validation
API Reference
Constructors
Conversions
Arithmetic
Comparison
Bitwise
Validation
Related
- Int8 - Signed 8-bit integers
- Int16 - Signed 16-bit integers
- Int64 - Signed 64-bit integers
- Int128 - Signed 128-bit integers
- Int256 - Signed 256-bit integers
References
- EVM SDIV - Signed division opcode
- EVM SMOD - Signed modulo opcode
- Two’s Complement - Wikipedia

