bccomp
(PHP 3, PHP 4 , PHP 5)
bccomp -- 두개의 임의 정확도 수를 비교한다
설명
int
bccomp ( string left_operand, string right_operand [, int scale])
left_operand를
right_operand와 비교하고 결과값을 정수로 반환한다.
선택적인 scale 매개변수는 비교시 사용되는 소수점 이하
자릿수를 설정하는데 사용된다. 두 수가 같으면 0의 결과값을 반환한다.
left_operand가 right_operand 보다
크면 +1을 반환하고, left_operand가
right_operand 보다 작으면 -1을 반환한다.