|
PHP5中文手册
bccomp(PHP 4, PHP 5) bccomp — Compare two arbitrary precision numbers 说明
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. 参数
返回值Returns 0 if the two operands are equal, 1 if the left_operand is larger than the right_operand , -1 otherwise. 范例Example#1 bccomp() example
<?php |