bcpow.phpt 261 B

123456789101112131415161718
  1. --TEST--
  2. bcpow() function
  3. --EXTENSIONS--
  4. bcmath
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. echo bcpow("1", "2"),"\n";
  10. echo bcpow("-2", "5", 4),"\n";
  11. echo bcpow("2", "64"),"\n";
  12. echo bcpow("-2.555", "5", 2),"\n";
  13. ?>
  14. --EXPECT--
  15. 1
  16. -32.0000
  17. 18446744073709551616
  18. -108.88