fmod
(PHP 4 >= 4.2.0, PHP 5)
fmod — Returns the floating point remainder (modulo) of the division
of the arguments
Description
float fmod
( float $x
, float $y
)
Parameters
-
x
-
The dividend
-
y
-
The divisor
Return Values
The floating point remainder of
x
/y
Examples
Example #1 Using fmod()
<?php
$x = 5.7;
$y = 1.3;
$r = fmod($x, $y);
?>