xref: /PHP-5.4/ext/bcmath/tests/bcpowmod.phpt (revision d42fd45f)
1--TEST--
2bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcpowmod("5", "2", "7") . "\n";
10echo bcpowmod("-2", "5", "7") . "\n";
11echo bcpowmod("10", "2147483648", "2047");
12?>
13--EXPECT--
144
15-4
16790