Skip to content

uint64

Convert to unsigned 64-bit integer.

S = uint64(X)

Returns X converted to uint64 (range 0 to ~1.84 × 10¹⁹). Values outside the range are saturated.

uint64(2^63) % 9223372036854775808
  • int64 — Convert to signed 64-bit integer.
  • uint32 — Convert to unsigned 32-bit integer.
  • cast — Convert an array to a different element type.