(PHP 8)
fdiv — Divides two numbers, according to IEEE 754
fdiv ( float $dividend , float $divisor ) : float
Returns the floating point result of dividing the dividend
by the divisor
. If the divisor
is zero, then one of INF
, -INF
, or NAN
will be returned.
Note that in comparisons, NAN
will never ==
or ===
, any value, including itself.
dividend
The dividend (numerator)
divisor
The divisor
The floating point result of dividend
/divisor
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.fdiv.php