gmp_divexact()
gmp_divexact - Exact division of numbers
Syntax
resource gmp_divexact (
resource $n,
resource $d)
Arguments
- n - The number being divided. It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
- d - The number that a is being divided by. It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
Description
Divides n by d, using fast "exact division" algorithm. This function produces correct results only when it is known in advance that d divides n.
Version
PHP 4.0.4, 5
Return value
A GMP number resource.