BC Math is a binary calculator for PHP which supports numbers of any size and precision, represented as strings.
BC Math is a binary calculator for PHP which supports numbers of any size and precision, represented as strings.
BC Math Functions
bcadd()
~ Add two arbitrary precision numbersbccomp()
~ Compare two arbitrary precision numbersbcdiv()
~ Divide two arbitrary precision numbersbcmod()
~ Get modulus of an arbitrary precision numberbcmul()
~ Multiply two arbitrary precision numberbcpow()
~ Raise an arbitrary precision number to anotherbcpowmod()
~ Raise an arbitrary precision number to another, reduced by a specified modulusbcscale()
~ Set default scale parameter for all bc math functionsbcsqrt()
~ Get the square root of an arbitrary precision numberbcsub()
~ Subtract one arbitrary precision number from another