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 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)