xref: /PHP-7.4/ext/bcmath/tests/bcmod.phpt (revision b152633e)
1--TEST--
2bcmod() function
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcmod("11", "2"),"\n";
10echo bcmod("-1", "5"),"\n";
11echo bcmod("8728932001983192837219398127471", "1928372132132819737213"),"\n";
12echo bcmod("3.5", "4", 1),"\n";
13echo bcmod("1071", "357.5"),"\n";
14?>
15--EXPECT--
161
17-1
181459434331351930289678
193.5
20356
21