PS TEXT FORMAT Reference Manual
Expressions
11387 Tandem Computers Incorporated 5-23
MIN Function The MIN function returns the value of whichever argument is the lesser of
the two.
MIN (
n-exp
,
n-exp
)
(N)
MODULO Function The MODULO function returns a number that is the remainder of the
division, in integer arithmetic, of the first argument by the second, or
n-exp
modulo
i-exp
.
MODULO (
n-exp
,
i-exp
)
Computations done by MODULO make use of an implied function that
could be called INT (
n
), which returns the largest integer that is not greater
than
n
. Take, for example, the following MODULO equation:
MODULO(A,B) = A - (B * INT(A/B))
Using this equation, MODULO(10,3) evaluates as follows:
MODULO(10,3) = 10-(3*INT(10/3)) = 10-(3*3) = 10-9 =
1
The second argument must be an integer; since it is used as the divisor in a
division operation, it must not be zero. If
i-exp
is zero, TFORM issues an
error message and does not perform the MODULO function. (N)