**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:**\\ [[jvs:cigal:manual:chapter3:integer|INTEGER(3)]], [[jvs:cigal:manual:chapter1:numbers|NUMBERS(1)]], [[jvs:cigal:manual:chapter3:round|ROUND(3)]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter3|Functions List]], [[jvs:cigal:manual:help|Manual Help]]