BigNumber

Created by Ugljesa Jovanovic ugljesa.jovanovic@ionspin.com on 04-Apr-2019

Inheritors

Types

Link copied to clipboard
interface Creator<BigType>
Link copied to clipboard
interface Util<BigType>

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun abs(): BigType

Return absolute value of this big integer

Link copied to clipboard
abstract fun add(other: BigType): BigType
Link copied to clipboard
abstract fun compareTo(other: Any): Int
Link copied to clipboard
abstract fun divide(other: BigType): BigType
Link copied to clipboard

Perform integer division and return quotient and remainder

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun isZero(): Boolean
Link copied to clipboard
abstract fun multiply(other: BigType): BigType
Link copied to clipboard
abstract fun negate(): BigType

Return additive inverse of this number

Link copied to clipboard
abstract fun numberOfDecimalDigits(): Long

Return the number of decimal digits representing this number

Link copied to clipboard
abstract fun pow(exponent: Int): BigType

Return result of exponentiation of this number by supplied integer exponent i.e.

abstract fun pow(exponent: Long): BigType

Return result of exponentiation of this number by supplied long exponent i.e.

Link copied to clipboard
abstract fun remainder(other: BigType): BigType

Remainder of integer division operation. Remainder has same sign as dividend.

Link copied to clipboard
abstract fun secureOverwrite()

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.

Link copied to clipboard
abstract fun signum(): Int
Link copied to clipboard
abstract fun subtract(other: BigType): BigType
Link copied to clipboard
abstract override fun toString(): String
abstract fun toString(base: Int): String
Link copied to clipboard
abstract operator fun unaryMinus(): BigType