KBigIntegerImpl

actual class KBigIntegerImpl(value: String) : KBigInteger
expect class KBigIntegerImpl(value: String) : KBigInteger
actual class KBigIntegerImpl(value: String)

Constructors

Link copied to clipboard
actual constructor(value: String)
expect constructor(value: String)
actual constructor(value: String)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Functions

Link copied to clipboard
actual open override fun abs(): KBigInteger

Returns the absolute value of this KBigInteger.

expect open override fun abs(): KBigInteger

Returns the absolute value of this KBigInteger.

actual open fun abs(): KBigInteger
Link copied to clipboard
actual open override fun add(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the sum of this and the specified value.

expect open override fun add(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the sum of this and the specified value.

Link copied to clipboard
actual open operator override fun compareTo(other: KBigInteger): Int

Compares this KBigInteger with the specified KBigInteger.

expect open operator override fun compareTo(other: KBigInteger): Int

Compares this KBigInteger with the specified KBigInteger.

Link copied to clipboard
operator fun KBigInteger.div(other: KBigInteger): KBigInteger

Division operator for KBigInteger.

Link copied to clipboard
actual open override fun divide(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the quotient of this divided by the specified value.

expect open override fun divide(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the quotient of this divided by the specified value.

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

Checks if this KBigInteger is negative (less than zero).

open fun isNegative(): Boolean

Checks if this KBigInteger is negative (less than zero).

Link copied to clipboard
open fun isPositive(): Boolean

Checks if this KBigInteger is positive (greater than zero).

open fun isPositive(): Boolean

Checks if this KBigInteger is positive (greater than zero).

Link copied to clipboard
open fun isZero(): Boolean

Checks if this KBigInteger is equal to zero.

open fun isZero(): Boolean

Checks if this KBigInteger is equal to zero.

Link copied to clipboard

Returns the maximum of this KBigInteger and the specified value.

Link copied to clipboard

Returns the minimum of this KBigInteger and the specified value.

Link copied to clipboard

Subtraction operator for KBigInteger.

Link copied to clipboard
actual open override fun mod(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the remainder of this divided by the specified value.

expect open override fun mod(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the remainder of this divided by the specified value.

Link copied to clipboard
actual open override fun multiply(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the product of this and the specified value.

expect open override fun multiply(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the product of this and the specified value.

Link copied to clipboard
open fun negate(): KBigInteger

Returns the negation of this KBigInteger.

open fun negate(): KBigInteger

Returns the negation of this KBigInteger.

Link copied to clipboard
operator fun KBigInteger.plus(other: KBigInteger): KBigInteger

Addition operator for KBigInteger.

Link copied to clipboard
fun KBigInteger.pow(exponent: Int): KBigInteger

Calculates this KBigInteger raised to the power of the specified integer exponent.

Link copied to clipboard
operator fun KBigInteger.rem(other: KBigInteger): KBigInteger

Remainder operator for KBigInteger.

Link copied to clipboard
actual open override fun signum(): Int

Returns the signum function of this KBigInteger.

expect open override fun signum(): Int

Returns the signum function of this KBigInteger.

actual open fun signum(): Int
Link copied to clipboard
actual open override fun subtract(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the difference of this and the specified value.

expect open override fun subtract(other: KBigInteger): KBigInteger

Returns a KBigInteger that is the difference of this and the specified value.

Link copied to clipboard

Multiplication operator for KBigInteger.

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

Converts this KBigInteger to a Long value.

expect open override fun toLong(): Long

Converts this KBigInteger to a Long value.

actual open fun toLong(): Long
Link copied to clipboard
actual open override fun toPreciseNumber(): KBigDecimal

Converts this KBigInteger to a KBigDecimal for precise decimal operations.

expect open override fun toPreciseNumber(): KBigDecimal

Converts this KBigInteger to a KBigDecimal for precise decimal operations.

actual open fun toPreciseNumber(): KBigDecimal
Link copied to clipboard
actual open override fun toString(): String

Returns the string representation of this KBigInteger.

expect open override fun toString(): String

Returns the string representation of this KBigInteger.

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

Unary minus operator for KBigInteger.

Link copied to clipboard

Unary plus operator for KBigInteger (identity operation).