dis-bench / src /php /php-src /ext /bcmath /tests /bccomp_variation001.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
276 Bytes
--TEST--
bccomp() with non-integers
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
<?php
echo bccomp("2.2", "2.2", "2") . "\n";
echo bccomp("2.32", "2.2", "2") . "\n";
echo bccomp("2.29", "2.3", "2") . "\n";
echo bccomp("2.29", "0", "2") . "\n";
?>
--EXPECT--
0
1
-1
1