fdiv
Description
Syntax
fdiv ( float $num1 , float $num2 ) : float
Parameters
num1
The dividend (numerator)
num2
The divisor
Return
The floating point result of num1/num2
Examples
1
<? var_dump(fdiv(5.7, 1.3)); var_dump(fdiv(4, 2)); var_dump(fdiv(1.0, 0.0)); var_dump(fdiv(-1.0, 0.0)); var_dump(fdiv(0.0, 0.0)); ?>
float(4.384615384615385) float(2) float(INF) float(-INF) float(NAN)