bcsqrt.phpt 263 B

123456789101112131415161718
  1. --TEST--
  2. bcsqrt() function
  3. --EXTENSIONS--
  4. bcmath
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. echo bcsqrt("9"),"\n";
  10. echo bcsqrt("9.444", 2),"\n";
  11. echo bcsqrt("1928372132132819737213", 5),"\n";
  12. echo bcsqrt("0.5", 5), "\n";
  13. ?>
  14. --EXPECT--
  15. 3
  16. 3.07
  17. 43913234134.28826
  18. 0.70710