bccomp
Compare two arbitrary precision numbers
&reftitle.description;
intbccomp
stringnum1
stringnum2
intnullscale&null;
Compares num1 to num2
and returns the result of the comparison as an integer.
&reftitle.returnvalues;
Returns 0 if both operands are equal,
1 if num1 is greater than
num2, -1 otherwise.
&reftitle.changelog;
&Version;
&Description;
8.0.0
scale is now nullable.
&reftitle.examples;
bccomp example
]]>
&reftitle.seealso;
BcMath\Number::compare