MOD
Syntax:
MOD ( x , y )
Description: Computes the remainder when x is divided by y. The result has the same sign as y.
Arguments:
Name |
Type |
Description |
---|---|---|
x |
number |
The number for which the remainder is being sought. |
y |
number |
The number by which x is to be divided. |
Return Type and Value: number – The remainder when x is divided by y. The result has the same sign as y. If y is 0, the return value is unspecified.
example: