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