The php precise computing module bcmath bc is short for Binary Calculator. Bc * function parameters are all operands plus an optional [int scale], such as string bcadd (string $ left_operand, string $ right_operand [, int $ scale]). If scale is not provided, use the default value of bcscale. Here, the large number is represented by a string consisting of 0-9, and the return value is also a string.
Bcadd? Add two high-precision numbers
Bccomp? Returns-1, 0, 1 after comparing two high-precision numbers.
Bcp? Division of two high-precision numbers
Bcmod? High-precision remainder
Bcmul? Multiply two high-precision numbers
Bcpow? High-precision digital multiplication
Bcpowmod? Evaluate the modulo of high-precision numbers, which is very common in number theory.
Bcscale? The default number of decimal places is configured, which is equivalent to "scale =" in Linux bc"
Bcsqrt? Calculate the square root of a precise number
Bcsub? Subtract two high-precision numbers
Modify the php. ini configuration file in windows.
[Bcmath]; Number of decimal digits for all bcmath functions.; http://php.net/bcmath.scalebcmath.scale =1
Restart apache.
In linux, you need to recompile apache