Factor attempts to preserve natural mathematical semantics for numbers. Multiplying two large integers never results in overflow, and dividing two integers yields an exact ratio. Floating point numbers are also supported, along with complex numbers.

Math words are in the math vocabulary. Implementation details are in the math.private vocabulary.

Number protocol

Modular arithmetic

Bitwise arithmetic

See also

Integers, Rational numbers, Floats, Complex numbers

Math words are in the math vocabulary. Implementation details are in the math.private vocabulary.

Number protocol

Modular arithmetic

Bitwise arithmetic

See also

Integers, Rational numbers, Floats, Complex numbers

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2190, heads/master-855db86de1, Feb 3 2023 09:58:21)