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 (2267, heads/master-84dfa14a05, May 21 2024 08:56:18)