category Zend Zend_Math BigInteger

## Get absolute value of a big integer

`abs(string \$operand) : string`

`string`

### Returns

`string`

`add(string \$leftOperand, string \$rightOperand) : string`

`string`

`string`

`string`

## Convert a number between arbitrary bases

`baseConvert(string \$operand, int \$fromBase, int \$toBase) : string`

`string`

`int`

`int`

`string`

## Convert binary number into big integer

`binToInt(string \$bytes, bool \$twoc) : string`

`string`

`bool`

`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.

`comp(string \$leftOperand, string \$rightOperand) : int`

`string`

`string`

`int`

## Divide two big integers (this method returns only int part of result)

`div(string \$leftOperand, string \$rightOperand) : string`

`string`

`string`

`string`

## Create adapter-specific representation of a big integer

`init(string \$operand, integer | null \$base) : mixed`

### Parameters

`string`

#### \$base

`integernull`

`mixed`

## Convert big integer into it's binary number representation

`intToBin(string \$int, bool \$twoc) : string`

`string`

`bool`

`string`

## Get modulus of a big integer

`mod(string \$leftOperand, string \$modulus) : string`

`string`

`string`

`string`

## Multiply two big integers

`mul(string \$leftOperand, string \$rightOperand) : string`

`string`

`string`

`string`

## Raise a big integers to another

`pow(string \$operand, string \$exp) : string`

`string`

`string`

`string`

## Raise a big integer to another, reduced by a specified modulus

`powmod(string \$leftOperand, string \$rightOperand, string \$modulus) : string`

`string`

`string`

`string`

`string`

## Get the square root of a big integer

`sqrt(string \$operand) : string`

`string`

`string`

## Subtract two big integers

`sub(string \$leftOperand, string \$rightOperand) : string`

`string`

`string`

`string`

## Base62 alphabet for arbitrary base conversion

`BASE62_ALPHABET `