Home
last modified time | relevance | path

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

/php-src/ext/bcmath/tests/
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";
13 echo bccomp("0", "14"), "\n";
14 echo bccomp("1", "0"), "\n";
15 echo bccomp("0.000", "0", 3), "\n";
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") . "\n";
12 echo bccomp("-2.29", "2.3", "2") . "\n";
13 echo bccomp("2.29", "-2.3", "2") . "\n";
14 echo bccomp("-2.29", "-2.3", "1") . "\n";
15 echo bccomp("-2.29", "0", "1") . "\n";
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_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") . "\n";
12 echo bccomp("2.29", "0", "2") . "\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 Dbcdivmod.phpt29 if (bccomp($quot, $div_ret) !== 0) {
35 if (bccomp($rem, $mod_ret) !== 0) {
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-src/ext/bcmath/
H A Dbcmath_arginfo.h135 ZEND_FUNCTION(bccomp);
168 ZEND_FE(bccomp, arginfo_bccomp)
H A Dbcmath.stub.php37 function bccomp(string $num1, string $num2, ?int $scale = null): int {} function
H A Dbcmath.c678 PHP_FUNCTION(bccomp) in PHP_FUNCTION() argument

Completed in 16 milliseconds