← All docs

fdiv()

Divides two numbers, according to IEEE 754.

fdiv()

function fdiv(float $num1, float $num2): float

Divides two numbers, according to IEEE 754.

Parameters:

  • $num1 (float)
  • $num2 (float)

Returns: float

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how fdiv is implemented in the compiler, see the internals page.