Chung Leong edited this page Jan 10, 2022
·
3 revisions
mod - Floored division modulo
float mod( float $x, float $y )
mod() returns the remainder after a floored division is performed on x and y. The result is defined as: r = y * floor( x / y )
.
x - The dividend. It can be a scalar or an array.
y - The divisor. It can be a scalar or an array.
y * floor( x / y ). If x or y is an array, then return value is also an array, the size of which match the larger of x and y.
1.0 and above.