summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bccomp_variation001.phpt
blob: 456f235ef78dfe21183099a6553fb268339caf06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
bccomp() with non-integers
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--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");
?>
--EXPECTF--
0
1
-1