BC is the abbreviation for binary calculator. The arguments to the bc* function are the operands plus an optional [int scale], such as String Bcadd (String $left _operand, String $right _operand[, int $scale]), if scale is not provided , the default value of Bcscale is used. Here the large number is directly represented by a string of 0-9, and the result of the calculation is also a string.
Bcadd-adds two high-precision numbers
Bccomp-compares two high-precision numbers, returns-1, 0, 1
bcdiv-divides two high-precision numbers
Bcmod-seeking high precision digital remainder
bcmul-multiply two high-precision numbers
bcpow-High Precision Digital exponentiation
Bcpowmod-to find high-precision digital exponentiation, number theory is very common
bcscale-Configure the default number of decimal places, equivalent to the "scale=" in the Linux BC
bcsqrt-to find the square root of high precision number
bcsub-to subtract two high-precision numbers
Modify the php.ini configuration file directly under Windows
[Bcmath]; Number of decimal digits for all bcmath functions.; Http://php.net/bcmath.scalebcmath.scale = <strong>1</strong>
Then restart Apache.
Need to recompile Apache under Linux
PHP Precision Computing Module Bcmath