Progress
Language Reference
MODULO Operator
Determines the remainder after division.
SYNTAX
expression
An integer expression.
base
A positive integer expression that is the modulo base. For example, angles measured in degrees use a base of 360 for modulo arithmetic. 372 MODULO 360 is 12.
EXAMPLEThis procedure determines the number of trucks required to ship a given quantity of material, and how much material is left over from a less than full truck load.
NOTE
The expression must be greater than 0 for MODULO to return a correct value.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |