e.g. Mod('Expression1','Expression2')
This function returns the modulo of 'Expression1' and 'Expression2' as its result. Internally, the function uses the fmod C-function, which permits the use of floating-point values for 'Expression1' and 'Expression2'.
Modulo r is the remainder of the division Expression1 / Expression2 so that the following relationship applies in the opposite direction: Expression1 = Expression2 * i + r, where i is an integer number (integer). Modulo r always has the same sign as 'Expression1' and the absolute value of r is always smaller than the absolute value of 'Expression2'. If Expression1' < 'Expression2', the function returns the value of 'Expression1' as its result. Mathematically speaking, the modulo can also be described as "Expression1 modulo Expression2".
Arguments
Give at least the following arguments.
|
Function |
Mod |
|
Dividend (Expression1) |
Dividend of the modulo function |
|
Divisor (Expression2) |
Divisor of the modulo function |