This section lists Fathom's arithmetic functions.
abs( x ) |
Absolute value. You may also use vertical
bars. |
floor( x ) |
Next-lower integer. (Compare with trunc.) |
trunc( x ) |
Lops off the decimals. (Compare with
floor.) |
round( x ) |
Round to nearest integer. |
sgn( x ) |
Gives -1 if negative, +1 if positive,
and 0 if 0. |
modulo( x, y) |
The remainder when you divide the first
number by the second. |
exp( x ) |
Exponential. For example, exp(2) is e squared. |
ln( x ) |
Logarithm to the base e (natural log). Example: ln(1) gives zero. |
log( x ) |
Common log. Example: log(1000) gives 3. |
combinations( n, k ) |
The number of combinations of n things taken k
at a time. |
factorial |
Use the exclamation point for factorial: 4! gives 24. |
sqrt( x ) |
Square root. This is a synonym for the radical sign ( --R ) for those that prefer their functions spelled out. |