Zend\Math\BigInteger\Adapter\AdapterInterface
Synopsis
interface AdapterInterface
{
- // constants
- const BASE62_ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
- // methods
- public mixed init()
- public string add()
- public string sub()
- public string mul()
- public string div()
- public string pow()
- public string sqrt()
- public string abs()
- public string mod()
- public string powmod()
- public int comp()
- public string intToBin()
- public string binToInt()
- public string baseConvert()
Constants
Name | Value |
---|---|
BASE62_ALPHABET | '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' |
Methods
public
- abs() — Get absolute value of a big integer
- add() — Add two big integers
- baseConvert() — Convert a number between arbitrary bases
- binToInt() — Convert binary number into big integer
- 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.
- div() — Divide two big integers (this method returns only int part of result)
- init() — Create adapter-specific representation of a big integer
- intToBin() — Convert big integer into it's binary number representation
- mod() — Get modulus of a big integer
- mul() — Multiply two big integers
- pow() — Raise a big integers to another
- powmod() — Raise a big integer to another, reduced by a specified modulus
- sqrt() — Get the square root of a big integer
- sub() — Subtract two big integers