\Zend_Crypt_Math_BigInteger_Bcmath
Support for arbitrary precision mathematics in PHP.
Zend_Crypt_Math_BigInteger_Bcmath is a wrapper across the PHP BCMath
extension.
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Crypt_Math_BigInteger_Bcmath
implements
Zend_Crypt_Math_BigInteger_Interface
{
- // methods
- public string init()
- public string add()
- public string subtract()
- public int compare()
- public string|null divide()
- public string modulus()
- public string multiply()
- public string pow()
- public string powmod()
- public string sqrt()
- public void binaryToInteger()
- public void integerToBinary()
- public void hexToDecimal()
Hierarchy
Implements
Methods
public
- add() — Adds two arbitrary precision numbers
- binaryToInteger()
- compare() — Compare two big integers and returns result as an integer where 0 means both are identical, 1 that left_operand is larger, or -1 that right_operand is larger.
- divide() — Divide two big integers and return result or NULL if the denominator is zero.
- hexToDecimal()
- init() — Initialise a big integer into an extension specific type. This is not applicable to BCMath.
- integerToBinary()
- modulus()
- multiply()
- pow()
- powmod()
- sqrt()
- subtract()