| Fully Qualified Name: | Zend\Math\BigInteger\Adapter\AdapterInterface |
| Name | Description | Defined By |
|---|---|---|
| abs() | Get absolute value of a big integer | AdapterInterface |
| add() | Add two big integers | AdapterInterface |
| baseConvert() | Convert a number between arbitrary bases | AdapterInterface |
| binToInt() | Convert binary number into big integer | AdapterInterface |
| comp() | Compare two big integers Returns < 0 if leftOperand is less than rightOperand; > 0 if leftOperand is greater than rightOperand, and 0 if they are equal. | AdapterInterface |
| div() | Divide two big integers (this method returns only int part of result) | AdapterInterface |
| init() | Create adapter-specific representation of a big integer | AdapterInterface |
| intToBin() | Convert big integer into it's binary number representation | AdapterInterface |
| mod() | Get modulus of a big integer | AdapterInterface |
| mul() | Multiply two big integers | AdapterInterface |
| pow() | Raise a big integers to another | AdapterInterface |
| powmod() | Raise a big integer to another, reduced by a specified modulus | AdapterInterface |
| sqrt() | Get the square root of a big integer | AdapterInterface |
| sub() | Subtract two big integers | AdapterInterface |
Get absolute value of a big integer
| Parameter Name | Type | Description |
|---|---|---|
| $operand | string |
Returns: string
Add two big integers
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $rightOperand | string |
Returns: string
Convert a number between arbitrary bases
| Parameter Name | Type | Description |
|---|---|---|
| $operand | string | |
| $fromBase | int | |
| $toBase | int |
Returns: string
Convert binary number into big integer
| Parameter Name | Type | Description |
|---|---|---|
| $bytes | string | |
| $twoc | bool |
Returns: string
Compare two big integers Returns < 0 if leftOperand is less than rightOperand; > 0 if leftOperand is greater than rightOperand, and 0 if they are equal.
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $rightOperand | string |
Returns: int
Divide two big integers (this method returns only int part of result)
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $rightOperand | string |
Returns: string
Create adapter-specific representation of a big integer
| Parameter Name | Type | Description |
|---|---|---|
| $operand | string | |
| $base | int|null |
Returns: mixed
Convert big integer into it's binary number representation
| Parameter Name | Type | Description |
|---|---|---|
| $int | string | |
| $twoc | bool |
Returns: string
Get modulus of a big integer
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $modulus | string |
Returns: string
Multiply two big integers
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $rightOperand | string |
Returns: string
Raise a big integers to another
| Parameter Name | Type | Description |
|---|---|---|
| $operand | string | |
| $exp | string |
Returns: string
Raise a big integer to another, reduced by a specified modulus
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $rightOperand | string | |
| $modulus | string |
Returns: string
Get the square root of a big integer
| Parameter Name | Type | Description |
|---|---|---|
| $operand | string |
Returns: string
Subtract two big integers
| Parameter Name | Type | Description |
|---|---|---|
| $leftOperand | string | |
| $rightOperand | string |
Returns: string