Home
last modified time | relevance | path

Searched refs:bccomp (Results 1 – 10 of 10) sorted by relevance

/PHP-8.1/ext/bcmath/tests/
H A Dstr2num_formatting.phpt57 echo bccomp("1", "2"),"\n";
58 echo bccomp("1.1", "2", 2),"\n";
59 echo bccomp("", "2"),"\n";
60 echo bccomp("+0", "2"), "\n";
61 echo bccomp("-0", "2"), "\n";
66 echo bccomp(" 0", "2");
72 echo bccomp("1e1", "2");
78 echo bccomp("1,1", "2");
84 echo bccomp("Hello", "2");
90 echo bccomp("1 1", "2");
[all …]
H A Dbccomp.phpt2 bccomp() function
9 echo bccomp("-1", "5", 4),"\n";
10 echo bccomp("1928372132132819737213", "8728932001983192837219398127471"),"\n";
11 echo bccomp("1.00000000000000000001", "1", 2),"\n";
12 echo bccomp("97321", "2321"),"\n";
H A Dbccomp_error.phpt2 bccomp() requires well-formed values
9 bccomp('a', '1');
15 bccomp('1', 'a');
22 bccomp(): Argument #1 ($num1) is not well-formed
23 bccomp(): Argument #2 ($num2) is not well-formed
H A Dbccomp_variation001.phpt2 bccomp() with non-integers
9 echo bccomp("2.2", "2.2", "2")."\n";
10 echo bccomp("2.32", "2.2", "2")."\n";
11 echo bccomp("2.29", "2.3", "2");
H A Dbccomp_variation002.phpt2 bccomp() with negative value
9 echo bccomp("-2", "-2")."\n";
10 echo bccomp("-2", "2", "1")."\n";
11 echo bccomp("-2.29", "-2.3", "2");
H A Dbug46781.phpt8 var_dump(bccomp('-0.0', '0', 1));
H A Dnegative_scale.phpt50 bccomp('1', '2', -1);
69 bccomp(): Argument #3 ($scale) must be between 0 and 2147483647
/PHP-8.1/ext/bcmath/
H A Dbcmath_arginfo.h55 ZEND_FUNCTION(bccomp);
68 ZEND_FE(bccomp, arginfo_bccomp)
H A Dbcmath.stub.php29 function bccomp(string $num1, string $num2, ?int $scale = null): int {} function
H A Dbcmath.c571 PHP_FUNCTION(bccomp) in PHP_FUNCTION() argument

Completed in 11 milliseconds