Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


REM

The REM function returns a numeric value that is the remainder of argument-1 divided by argument-2.

The function type is numeric.

Format
Read syntax diagramSkip visual syntax diagram>>-FUNCTION REM--(--argument-1--argument-2--)------------------><
 
argument-1
Must be class numeric.
argument-2
Must be class numeric. Must not be zero.

The returned value is the remainder of argument-1 divided by argument-2. It is defined as the expression:

argument-1 - (argument-2 * FUNCTION INTEGER-PART (argument-1 / argument-2))


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)