← All docs

gmp_div_qr()

Divides two GMP numbers and returns quotient and remainder.

gmp_div_qr()

function gmp_div_qr(object|string|int $num1, object|string|int $num2, int $rounding_mode = 0): array

Divides two GMP numbers and returns quotient and remainder.

Parameters:

  • $num1 (object|string|int)
  • $num2 (object|string|int)
  • $rounding_mode (int), default 0, optional

Returns: array

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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