dis-bench / src /php /php-src /ext /bcmath /tests /bccomp.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
416 Bytes
--TEST--
bccomp() function
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
<?php
echo bccomp("-1", "5", 4), "\n";
echo bccomp("1928372132132819737213", "8728932001983192837219398127471"), "\n";
echo bccomp("1.00000000000000000001", "1", 2), "\n";
echo bccomp("97321", "2321"), "\n";
echo bccomp("0", "14"), "\n";
echo bccomp("1", "0"), "\n";
echo bccomp("0.000", "0", 3), "\n";
?>
--EXPECT--
-1
-1
0
1
-1
1
0