@ -0,0 +1,12 @@
--TEST--
bcdiv — Divide two arbitrary precision numbers
--CREDITS--
TestFest2009
Antoni Torrents
antoni@solucionsinternet.com
--FILE--
<?php
echo bcdiv('10.99', '0');
?>
--EXPECTF--
Warning: bcdiv(): Division by zero in %s.php on line %d
@ -0,0 +1,11 @@
echo bcdiv('1', '2', '3', '4');
Warning: Wrong parameter count for bcdiv() in %s.php on line %d
bcmod — Get modulus of an arbitrary precision number
echo bcmod('1', '2', '3');
Warning: Wrong parameter count for bcmod() in %s.php on line %d
bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
echo bcpowmod('1');
Warning: bcpowmod() expects at least 3 parameters, 1 given in %s.php on line %d
echo bcpowmod('1', '2');
Warning: bcpowmod() expects at least 3 parameters, 2 given in %s.php on line %d
echo bcpowmod('1', '2', '3', '4', '5');
Warning: bcpowmod() expects at most 4 parameters, 5 given in %s.php on line %d
bcsqrt — Get the square root of an arbitrary precision number
echo bcsqrt('-9');
Warning: bcsqrt(): Square root of negative number in %s.php on line %d