basic.rem.function Function/BASIC Program

basic.rem.function

Command basic.rem.function Function/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
Description returns the remainder portion of the result of dividing one number by another.

There is no limitation on the numeric value of the dividend or divisor. The "rem" and "mod" functions are identical.
Syntax rem(dividend,divisor)
Options
Example
for i = 1 to lines
  print rec<i>
  if not(rem(i,60)) then print char(12):
next i
"rem" is used to find the end of a page.  Every 60 lines, a form 
feed, char(12), is printed.
Purpose
Related basic.statements
basic.mod
basic.not
basic.char
basic.functions