ң

gmp_div_qr

(PHP 4 >= 4.0.4)

gmp_div_qr - .

array gmp_div_qr (resource n, resource d [, int round])

n d [n/d] ( ) (n - [n/d] * d) ( ).

. gmp_div_q() round .

1. GMP-
<?php $a = gmp_init ("0x41682179fbf5"); $res = gmp_div_qr ($a, "0xDEFE75"); printf("Result is: q - %s, r - %s", gmp_strval ($res[0]), gmp_strval ($res[1])); ?>

. gmp_div_q() , gmp_div_r() .


ң
gmp_div_q gmp_div_r