Fixed-size integers

Back to Integers

The Integer class is an integer whose number of bits can be set arbitrarily at compile-time. It works either as an unsigned integer, or as a signed integer in two’s complement form, selectable at compile-time. For an unsigned integer the bit-representation is its base-2 representation. For an n-bit integer, the arithmetic is performed modulo . For a signed integer, the bit-representation is in two’s complement form.

Learn more

Files

A fized-size integer in twos complement form.

Concepts for multi-integer

Hashing for multi-integers

Multi-integer module

Testing for MultiInteger