Next: Limit Numerics
Up: Magnitudes and Numbers
Previous: Basic Operations
  Contents
- zero
- The zero element for the type of number.
- isZero
- Whether the number is the zero element for its type.
- isPositive/isNegative
- Whether it's positive or
negative.
- abs
- The absolute value of the number.
- sign
- The sign of the number.
- negated
- Returns -x for x.
- gcd:
- Greatest common divisor.
- lcm:
- Least common multiple.
- factorial
- Factorial.
- mod:/rem:/quo:
- Modulo division, remainder,
and quotient.
- reciprocal
- Constructs a new fraction reciprocal.
- min:
- The lesser of the arguments. The least in cases of
min:min:.
- max:
- The greater of the arguments. The greatest in cases
of max:max:.
- a between: b and: c
- Whether a is between b
and c.
- truncated/fractionPart
- answers the greatest integer
less than the number, and the corresponding difference as a fraction
(or a float for Float).
- reduced
- Only defined on Fraction, this is the
lazily-applied reducer; it will be invoked automatically for arithmetic
operations as necessary, but is useful when only the reduced form
is needed.
Brian Rice
2004-08-24