bcscale_variation001.phpt 201 B

12345678910111213
  1. --TEST--
  2. bcscale() with negative argument
  3. --SKIPIF--
  4. <?php if(!extension_loaded("bcmath")) print "skip"; ?>
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. bcscale(-4);
  10. echo bcdiv("20.56", "4");
  11. ?>
  12. --EXPECTF--
  13. 5