★ wanayoo — archive 1999 http://il.php.net/manual/function.bccomp.php3Nouvelle recherche | Portail wanayoo

PHP3 Home Page

Manual Table of Contents
Up to BC math
Quick Reference
BC math
* bcadd
* bccomp
* bcdiv
* bcmod
* bcmul
* bcpow
* bcscale
* bcsqrt
* bcsub
Manual: bccomp
View the source code for this pageSearch the site



Previous page
 bcadd
bcdiv 
Next page


bccomp

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.


 About Notes


Previous page
 bcadd
bcdiv 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
Israel
Some elements of this website are subject to copyright.