downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gmp_mul> <gmp_legendre
Last updated: Fri, 13 Nov 2009

view this page in

gmp_mod

(PHP 4 >= 4.0.4, PHP 5)

gmp_modモジュロ演算

説明

resource gmp_mod ( resource $n , resource $d )

d を法として n を計算します。結果は常に非負であり、 d の符号は無視されます。

パラメータ

n

GMP 数リソース、 あるいは数値に変換可能な数値形式の文字列。

d

法として使用する値。

GMP 数リソース、 あるいは数値に変換可能な数値形式の文字列。

返り値

GMP 数リソースを返します。

例1 gmp_mod() の例

<?php
$mod 
gmp_mod("8""3");
echo 
gmp_strval($mod) . "\n";
?>

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

2



add a note add a note User Contributed Notes
gmp_mod
There are no user contributed notes for this page.

gmp_mul> <gmp_legendre
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites