BigInteger

expect class BigInteger(value: String) : Number, Comparable<BigInteger>

An arbitrarily large signed integer

Parameters

value

the string representation of this large integer

actual class BigInteger(value: String) : Number, Comparable<BigInteger>
actual class BigInteger(value: String) : Number, Comparable<BigInteger>

Constructors

Link copied to clipboard
expect constructor(bytes: ByteArray)

Create an instance of BigInteger from a ByteArray

expect constructor(value: String)
actual constructor(bytes: ByteArray)
actual constructor(value: String)
actual constructor(bytes: ByteArray)
actual constructor(value: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
expect open operator override fun compareTo(other: BigInteger): Int

Compare this value to the given value for in/equality

actual open operator override fun compareTo(other: BigInteger): Int
actual open operator override fun compareTo(other: BigInteger): Int
Link copied to clipboard
expect open operator override fun equals(other: Any?): Boolean

Checks if this value is equal to the given object

actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect open override fun hashCode(): Int

Returns a hash code for this value

actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
Link copied to clipboard
expect operator fun minus(other: BigInteger): BigInteger

Returns the difference of this value and the given value

actual operator fun minus(other: BigInteger): BigInteger
actual operator fun minus(other: BigInteger): BigInteger
Link copied to clipboard
expect operator fun plus(other: BigInteger): BigInteger

Returns the sum of this value and the given value

actual operator fun plus(other: BigInteger): BigInteger
actual operator fun plus(other: BigInteger): BigInteger
Link copied to clipboard
expect open override fun toByte(): Byte

Converts this value to a Byte, which may involve rounding or truncation

actual open override fun toByte(): Byte
actual open override fun toByte(): Byte
Link copied to clipboard
expect fun toByteArray(): ByteArray

Returns the two's complement binary representation of this value

actual fun toByteArray(): ByteArray
actual fun toByteArray(): ByteArray
Link copied to clipboard
expect open override fun toDouble(): Double

Converts this value to a Double, which may involve rounding or truncation

actual open override fun toDouble(): Double
actual open override fun toDouble(): Double
Link copied to clipboard
expect open override fun toFloat(): Float

Converts this value to a Float, which may involve rounding or truncation

actual open override fun toFloat(): Float
actual open override fun toFloat(): Float
Link copied to clipboard
expect open override fun toInt(): Int

Converts this value to an Int, which may involve rounding or truncation

actual open override fun toInt(): Int
actual open override fun toInt(): Int
Link copied to clipboard
expect open override fun toLong(): Long

Converts this value to a Long, which may involve rounding or truncation

actual open override fun toLong(): Long
actual open override fun toLong(): Long
Link copied to clipboard
expect open override fun toShort(): Short

Converts this value to a Short, which may involve rounding or truncation

actual open override fun toShort(): Short
actual open override fun toShort(): Short
Link copied to clipboard
expect open override fun toString(): String

Returns the decimal (i.e., radix-10) string representation of this value

expect fun toString(radix: Int = 10): String

Returns a string representation of this value in the given radix

actual open override fun toString(): String
actual fun toString(radix: Int): String
actual open override fun toString(): String
actual fun toString(radix: Int): String

Inherited functions

toChar
Link copied to clipboard
open fun toChar(): Char
open fun toChar(): Char
open fun toChar(): Char