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-Compare two high-precision numbers and return-1, 0, 1
- Bcdiv-Division of two high-precision numbers
- Bcmod-Precise digital Remainder
- Bcmul-Multiply two high-precision numbers.
- Bcpow-High-Precision Digital Multiplication
- Bcpowmod-Modulo for finding high-precision numbers by square, which is very common in Number Theory
- Bcscale-Configure the default decimal place, which is equivalent to "scale =" in Linux BC"
- Bcsqrt-Calculate the square root of a precise number
- Bcsub-Subtract two high-precision numbers