bccomp

bccomp

(PHP 4, PHP 5, PHP 7)

bccompCompare two arbitrary precision numbers

Description

int bccomp ( string $left_operand , string $right_operand [, int $scale = 0 ] )

Compares the left_operand to the right_operand and returns the result as an integer.

Parameters

left_operand

The left operand, as a string.

right_operand

登录查看完整内容