jvs:cigal:manual:chapter3:rem
CIGAL Reference Manual, Chapter 3 (Functions): rem
Rem -- Calculate the remainder after performing integer division
usage: result = rem(x,y)
or: result = rem(x)
If REM is called with two arguments it calculates the integer remainder left over after dividing the first value by the second. That is, RESULT is:
x - integer(x/y) * y (where x and y are treated as integers).
If REM is called with a single argument it returns the non-integral part of each X value. That is, RESULT would be:
x - integer(x)
The number of elements in the output variable, RESULT, is the same as the number of elements in the input variable X.
See Also:
INTEGER(3),
NUMBERS(1),
ROUND(3)
jvs/cigal/manual/chapter3/rem.txt · Last modified: 2024/06/21 15:44 by 127.0.0.1