PHP 8.3.4 Released!

gmp_div_q

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

gmp_div_qDivide due numberi

Descrizione

gmp_div_q(resource $a, resource $b, int $round = ?): resource

Divide a per b e restituisce un numero intero. L'arrotondamento del risultato, è definito dal round, che può avere i seguenti valori:

  • GMP_ROUND_ZERO: Il risultato è troncato verso 0.
  • GMP_ROUND_PLUSINF: Il risultato è arrotondato verso +infinito.
  • GMP_ROUND_MINUSINF: Il risultato è arrotondato verso -infinito.

Questa funzione può anche essere richiamata come gmp_div().

Vedere anche gmp_div_r(), gmp_div_qr()

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top