← All docs

fmod()

Returns the floating point remainder of the division of the arguments.

fmod()

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

Returns the floating point remainder of the division of the arguments.

Parameters:

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

Returns: float

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

Internals

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