Big Integer
Arbitrary precision integer arithmetic.
Based on unsigned arrays, currently limited to Int.MAX_VALUE words.
Types
Properties
Functions
Return absolute value of this big integer
Perform integer division and return quotient and remainder
Returns an always positive remainder of division operation
Return additive inverse of this number
Inverts only up to chosen arithmetic bits. This is different from Java biginteger which returns inverse in two's complement.
Return the number of decimal digits representing this number
Returns a new BigInt with bits combining this, other doing a bitwise |/or operation. Forces sign to positive.
Return result of exponentiation of this number by supplied integer exponent i.e.
Return result of exponentiation of this number by supplied long exponent i.e.
Remainder of integer division operation. Returns the least absolute remainder (remainder has same sign as dividend)
Remainder of integer division operation. Remainder has same sign as dividend.
Remainder of integer division operation. Remainder has same sign as dividend
Returns the remainder of division operation. Uses truncating division, which means that the sign of remainder will be same as sign of dividend
Overwrite the underlying backing structure with zeroes. Meant to be used by libraries that require it for security purposes. NOTE: This breaks the immutability of BigNumber, and this instance cannot be used for further calculations. If it used the results are undefined.