fmod()
fmod - Returns the floating point remainder (modulo) of the division of the arguments
Syntax
float fmod (
float $x,
float $y)
Arguments
- x - The dividend
- y - The divisor
Description
Returns the floating point remainder of dividing the dividend ( x) by the divisor ( y). The reminder ( r) is defined as: x = i * y + r, for some integer i. If y is non-zero, r has the same sign as x and a magnitude less than the magnitude of y.
Version
PHP 4.2.0, 5
Return value
The floating point remainder of x / y