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 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)