gmp_div_q()
gmp_div_q - Divide numbers
Syntax
resource gmp_div_q (
resource $a,
resource $b,
int $round)
Arguments
- a - 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.
- b - 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.
- round - The result rounding is defined by the round, which can have the following values: GMP_ROUND_ZERO : The result is truncated towards 0. GMP_ROUND_PLUSINF : The result is rounded towards +infinity. GMP_ROUND_MINUSINF : The result is rounded towards -infinity. 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 a by b and returns the integer result.
Version
PHP 4.0.4, 5
Return value
A GMP number resource.