fmod
Description
The fmod of Math for PHP returns the floating point remainder (modulo) of the division of the arguments.
Syntax
fmod ( float $x , float $y ) : float
Parameters
x
The dividend
y
The divisor
Return
The floating point remainder of x/y
Examples
1
<? $x = 3.1; $y = 1.5; $return = fmod($x, $y); echo $return; ?>
0.1