bcdiv.phpt 298 B

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