# INT512

512-bit signed integer for overflow-safe intermediates and signed deltas. Stored as raw two's-complement bytes; use explicit narrowing casts only when the result is known to fit.

Canonical HTML: <https://determica.com/docs/types/int512>

- Family: Signed integer
- Physical type: BLOB

512-bit signed integer for overflow-safe intermediates and signed deltas. Stored as raw two's-complement bytes; use explicit narrowing casts only when the result is known to fit.

## Used by functions

### Accepted as input

- [length](/docs/functions/length.md) — Returns the number of bytes in a BLOB or BLOB-backed EVM value such as ADDRESS, BYTES32, UINT256, or INT256.
- [sort_key](/docs/functions/sort_key.md) — Converts INT256/INT512/UINT256/UINT512 to a sortable BLOB for use in ORDER BY. Necessary because Determica's default BLOB ordering doesn't handle signed integers correctly. Use sort_key only inside ORDER BY or comparison-key workflows; it is not a human-readable number conversion, hash, or portable serialization.
