bcmod.phpt 336 B

1234567891011121314151617181920
  1. --TEST--
  2. bcmod() function
  3. --EXTENSIONS--
  4. bcmath
  5. --INI--
  6. bcmath.scale=0
  7. --FILE--
  8. <?php
  9. echo bcmod("11", "2"),"\n";
  10. echo bcmod("-1", "5"),"\n";
  11. echo bcmod("8728932001983192837219398127471", "1928372132132819737213"),"\n";
  12. echo bcmod("3.5", "4", 1),"\n";
  13. echo bcmod("1071", "357.5"),"\n";
  14. ?>
  15. --EXPECT--
  16. 1
  17. -1
  18. 1459434331351930289678
  19. 3.5
  20. 356