Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

REM

REM returns the remainder of x divided by y. This can be calculated by:

  x - y * trunc(x/y)

Read syntax diagramSkip visual syntax diagram>>-REM(x,y)----------------------------------------------------><
 
x and y
Expressions. x and y must be computational and can be arithmetic.

For examples that contrast the REM and MOD built-in functions, refer to MOD.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)