AMT Datasouth PAL User Manual
Page 143
Advertising

137
mod
mod
Description
Perform integer division and return the modulo (remainder).
Usage
DividendInt DivisorInt
mod
RemainderInt
DividendInt
Integer. Value which PAL will divide by DivisorInt.
DivisorInt
Integer. Value which PAL will divide into DividendInt.
RemainderInt
Integer. Remainder following the division.
Comments
This operator calculates the remainder following an integer division. For example, "5 2 mod"
produces the result "1".
Advertising