bccomp

(PHP3 , PHP4 )

bccomp -- Compare two arbitrary precision numbers

Description

int bccomp (string left operand, string right operand [, int scale])

Compares the left operand to the right operand and returns the result as an integer. The optional scale parameter is used to set the number of digits after the decimal place which will be used in the comparion. The return value is 0 if the two operands are equal. If the left operand is larger than the right operand the return value is +1 and if the left operand is less than the right operand the return value is -1.


Hosted by Tonec Inc.