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.100 x86.64 (2240, heads/master-b90c89f82e, Sep 26 2023 19:59:25)