Public Member Functions |
| init ($operand, $base=10) |
| add ($left_operand, $right_operand) |
| subtract ($left_operand, $right_operand) |
| compare ($left_operand, $right_operand) |
| divide ($left_operand, $right_operand) |
| modulus ($left_operand, $modulus) |
| multiply ($left_operand, $right_operand) |
| pow ($left_operand, $right_operand) |
| powmod ($left_operand, $right_operand, $modulus) |
| sqrt ($operand) |
| binaryToInteger ($operand) |
| integerToBinary ($operand) |
| hexToDecimal ($operand) |
Detailed Description
Definition at line 39 of file Gmp.php.
Member Function Documentation
add |
( |
$ |
left_operand, |
|
|
$ |
right_operand |
|
) |
| |
compare |
( |
$ |
left_operand, |
|
|
$ |
right_operand |
|
) |
| |
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.
- Parameters:
-
string | $left_operand | |
string | $right_operand | |
- Returns:
- int
Implements Zend_Crypt_Math_BigInteger_Interface.
Definition at line 85 of file Gmp.php.
divide |
( |
$ |
left_operand, |
|
|
$ |
right_operand |
|
) |
| |
Divide two big integers and return result or NULL if the denominator is zero.
- Parameters:
-
string | $left_operand | |
string | $right_operand | |
- Returns:
- string|null
Implements Zend_Crypt_Math_BigInteger_Interface.
Definition at line 98 of file Gmp.php.
init |
( |
$ |
operand, |
|
|
$ |
base = 10 |
|
) |
| |
modulus |
( |
$ |
left_operand, |
|
|
$ |
modulus |
|
) |
| |
multiply |
( |
$ |
left_operand, |
|
|
$ |
right_operand |
|
) |
| |
pow |
( |
$ |
left_operand, |
|
|
$ |
right_operand |
|
) |
| |
powmod |
( |
$ |
left_operand, |
|
|
$ |
right_operand, |
|
|
$ |
modulus |
|
) |
| |
subtract |
( |
$ |
left_operand, |
|
|
$ |
right_operand |
|
) |
| |
The documentation for this class was generated from the following file:
- E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Crypt/Math/BigInteger/Gmp.php