Arithmetic
Factor handbook > The language > Numbers

Next:Constants


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