Mod |
Top Previous Next |
Prototype
IntValue:=IntInput1 Mod IntInput2
Description
It returns the remainder of a ratio between two integer numbers.
Parameters
intNum1: integer number. It is the dividend.
intNum2: integer number. It is the divisor.
Returned value
IntNum: integer value. It is the remainder of the ratio.
Notes
None.
Example
// It initializes X and Y variable X:=15; Y:=2;
//It calculates remainder of the ratio Z:=X mod Y;
//It logs result ApplicationLog('The remainder of the ratio between '+IntToStr(X)+' and '+IntToStr(Y)+' is '+IntToStr(Z));
|