-->$right returns 1 * $scale decimal places *************************************************************************************** $a
= 4.45;
$b = 5.54; if (Bccomp ($a, $b, 2) = = 0) {} ************************************************************************************ * Two high-precision numbers added *string bcadd (String $left _operand, String $right _operand [, int $scale]) * $scale the number of decimal points returned ********
$a = 1.0321456;
$b = 0.0123456;
$c = Bcadd ($a, $b, 2);
Var_dump ($c); * Two high precision subtraction *sstring bcsub ( String $left _operand, String $right _operand [, int $scale]) * $scale the number of decimal points returned ****************************************
$a = 1.0321456;
$b = 3.0123456;
$c = Bcsub ($a, $b, 2);
Var_dump ($c); * Two high-precision count/modulo *string bcmod (string $left _operAnd, String $modulus) ******************************************************* $a = 6;
$b = 4;
$c = Bcmod ($a, $b);
Var_dump ($c); * Two high-precision numbers divided *string bcdiv ( String $left _operand, String $right _operand [, int $scale]) * $scale number of decimal places defaults to 0 ***************************************
$a = 6;
$b = 5;
$c = Bcdiv ($a, $b, 3);
Var_dump ($c); * Two high precision numbers multiplied *string bcmul ( String $left _operand, String $right _operand [, int $scale]) * $scale number of decimal places defaults to 0 ***************************************
$a = 3.1415926;
$b = 2.4569874566;
$c = Bcmul ($a, $b, 6);
Var_dump ($c); * The secondary value of two high-precision numbers *string Bcpow (String $left _operand, String $rigHt_operand [, int $scale]) * $scale number of decimal places defaults to 0 ***********************************************************************
$a = 3.1415926;
$b = 2;
$c = Bcpow ($a, $b, 3);
Var_dump ($c); * The square root of the high-precision number *string bcsqrt (string $operand [, int $scale]) * $scal
e decimal digits default to 0 *************************************************** $b = bcsqrt ($a, 6);
Var_dump ($b); * Set the decimal digits of the BC function *bool bcscale (int $scale) * $scale the number of decimal digits defaults to 0 ************************** Bcscale ();?>