Skip to main content

Int64

Type-safe signed 64-bit integers with two’s complement encoding and EVM SDIV/SMOD semantics.

Overview

Branded bigint type representing signed 64-bit integers (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807). Uses two’s complement representation for negative values and implements EVM signed division/modulo semantics.

Quick Start

Two’s Complement Encoding

Negative values use two’s complement representation: Bit 63 is the sign bit:
  • 0 = positive
  • 1 = negative

Constants

Constructors

Conversions

Arithmetic

Bitwise Operations

Validation

API Reference

Constructors

Conversions

Arithmetic

Comparison

Bitwise

Validation

  • Int8 - Signed 8-bit integers
  • Int16 - Signed 16-bit integers
  • Int32 - Signed 32-bit integers
  • Int128 - Signed 128-bit integers
  • Int256 - Signed 256-bit integers

References