Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Support for arbitrary precision mathematics in PHP.
Zend_Crypt_Math_BigInteger_Bcmath is a wrapper across the PHP BCMath extension.
add(
string $left_operand, string $right_operand
)
:
stringAdds two arbitrary precision numbers
DetailsbinaryToInteger(
$operand
)
:
Detailscompare(
string $left_operand, string $right_operand
)
:
intCompare 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.
Detailsdivide(
string $left_operand, string $right_operand
)
:
string|nullDivide two big integers and return result or NULL if the denominator is zero.
DetailshexToDecimal(
$operand
)
:
Detailsinit(
string $operand, int $base
=
10
)
:
stringInitialise a big integer into an extension specific type. This is not applicable to BCMath.
DetailsintegerToBinary(
$operand
)
:
Detailsmodulus(
string $left_operand, $modulus
)
:
string
Detailsmultiply(
string $left_operand, string $right_operand
)
:
string
Detailspow(
string $left_operand, string $right_operand
)
:
string
Detailspowmod(
string $left_operand, string $right_operand, $modulus
)
:
string
Detailssqrt(
$operand
)
:
string
Detailssubtract(
string $left_operand, string $right_operand
)
:
string
Details