bcmod

(PHP 3, PHP 4, PHP 5)

bcmod -- 2 つの任意精度数値による剰余

説明

string bcmod ( string left operand, string modulus )

modulusleft operand を割った余りを求めます。

例 1. bcmod() の例

<?php
echo bcmod('4', '2'); // 0
echo bcmod('2', '4'); // 2
?>

参考

bcdiv()