Warning: file_put_contents(): Only -1 of 51 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
gmp_div_qr gmp_div GMP PHP Manual gmp_div_r (PHP 4 >= 4.0.4, 5) — 除算の余りを計算する 説明 resource ( $n , $d [, int $round ] ) n を d で整数として割った際の余りを...
Forum und email

gmp_div_r

(PHP 4 >= 4.0.4, PHP 5)

gmp_div_r — 除算の余りを計算する

説明

resource gmp_div_r ( resource $n , resource $d [, int $round ] )

nd で整数として割った際の余りを計算します。余りは、引数 n がゼロでないばあいに、これと同じ符号を有します。

パラメータ

n

割られる数。

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

n を割る数。

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

引数 round の説明については、関数 gmp_div_q() を参照ください。

返り値

余りを GMP 数で返します。

Example#1 gmp_div_r() の例

<?php
$div 
gmp_div_r("105""20");
echo 
gmp_strval($div) . "\n";
?>

上の例の出力は以下となります。

5