bcadd_variation001.phpt 228 B

12345678910111213141516
  1. --TEST--
  2. bcadd() with non-integers
  3. --EXTENSIONS--
  4. bcmath
  5. --INI--
  6. bcmath.scale=5
  7. --FILE--
  8. <?php
  9. echo bcadd("2.2", "4.3", "2")."\n";
  10. echo bcadd("2.2", "-7.3", "1")."\n";
  11. echo bcadd("-4.27", "7.3");
  12. ?>
  13. --EXPECT--
  14. 6.50
  15. -5.1
  16. 3.03000