bcscale.phpt 269 B

123456789101112131415161718192021
  1. --TEST--
  2. bcscale() function
  3. --EXTENSIONS--
  4. bcmath
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. echo bcadd("1", "2"),"\n";
  10. bcscale(2);
  11. echo bcadd("1", "2"),"\n";
  12. bcscale(10);
  13. echo bcadd("1", "2"),"\n";
  14. bcscale(0);
  15. echo bcadd("1", "2"),"\n";
  16. ?>
  17. --EXPECT--
  18. 3
  19. 3.00
  20. 3.0000000000
  21. 3