__construct()
abs()
add()
baseConvert()
binToInt()
comp()
div()
init()
intToBin()
mod()
mul()
pow()
powmod()
sqrt()
sub()
BASE62_ALPHABET
Bcmath extension adapter
__construct()
abs(string $operand) : string
string
string
add(string $leftOperand, string $rightOperand) : string
string
string
string
baseConvert(string $operand, int $fromBase, int $toBase) : string
Bases 2..62 are supported
string
int
int
\Zend\Math\BigInteger\Exception\InvalidArgumentException |
---|
string
binToInt(string $bytes, bool $twoc) : string
string
bool
whether binary number is in twos' complement form
string
comp(string $leftOperand, string $rightOperand) : int
string
string
int
div(string $leftOperand, string $rightOperand) : string
Raises exception if the divisor is zero.
string
string
\Zend\Math\BigInteger\Exception\DivisionByZeroException |
---|
string
init(string $operand, int | null $base) : bool | string
string
intnull
bool
string
intToBin(string $operand, bool $twoc) : string
string
bool
return in two's complement form
string
mod(string $leftOperand, string $rightOperand) : string
string
string
string
mul(string $leftOperand, string $rightOperand) : string
string
string
string
pow(string $operand, string $exp) : string
string
string
string
powmod(string $leftOperand, string $rightOperand, string $modulus) : string
string
string
string
string
sqrt(string $operand) : string
string
string
sub(string $leftOperand, string $rightOperand) : string
string
string
string
BASE62_ALPHABET
inherited_from | \Zend\Math\BigInteger\Adapter\AdapterInterface::BASE62_ALPHABET |
---|