Annotation of embedaddon/php/ext/bcmath/tests/bcpowmod.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
! 3: --SKIPIF--
! 4: <?php if(!extension_loaded("bcmath")) print "skip"; ?>
! 5: --INI--
! 6: bcmath.scale=0
! 7: --FILE--
! 8: <?php
! 9: echo bcpowmod("5", "2", "7") . "\n";
! 10: echo bcpowmod("-2", "5", "7") . "\n";
! 11: echo bcpowmod("10", "2147483648", "2047");
! 12: ?>
! 13: --EXPECT--
! 14: 4
! 15: -4
! 16: 790
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>