KBigDecimalImpl

actual class KBigDecimalImpl(value: String) : KBigDecimal
expect class KBigDecimalImpl(value: String) : KBigDecimal
actual class KBigDecimalImpl(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(): KBigDecimal

Returns the absolute value of this KBigDecimal.

expect open override fun abs(): KBigDecimal

Returns the absolute value of this KBigDecimal.

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

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

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

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

Link copied to clipboard
actual open operator override fun compareTo(other: KBigDecimal): Int
expect open operator override fun compareTo(other: KBigDecimal): Int
Link copied to clipboard
operator fun KBigDecimal.div(other: KBigDecimal): KBigDecimal

Division operator for KBigDecimal with default scale and rounding.

Link copied to clipboard
actual open override fun divide(other: KBigDecimal, scale: Int): KBigDecimal
actual open override fun divide(other: KBigDecimal, scale: Int, mode: Int): KBigDecimal

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

expect open override fun divide(other: KBigDecimal, scale: Int): KBigDecimal
expect open override fun divide(other: KBigDecimal, scale: Int, mode: Int): KBigDecimal

Returns a KBigDecimal 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 KBigDecimal is negative (less than zero).

open fun isNegative(): Boolean

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

Link copied to clipboard
open fun isPositive(): Boolean

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

open fun isPositive(): Boolean

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

Link copied to clipboard
open fun isZero(): Boolean

Checks if this KBigDecimal is equal to zero.

open fun isZero(): Boolean

Checks if this KBigDecimal is equal to zero.

Link copied to clipboard

Returns the maximum of this KBigDecimal and the specified value.

Link copied to clipboard

Returns the minimum of this KBigDecimal and the specified value.

Link copied to clipboard

Subtraction operator for KBigDecimal.

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

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

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

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

Link copied to clipboard
open fun negate(): KBigDecimal

Returns the negation of this KBigDecimal.

open fun negate(): KBigDecimal

Returns the negation of this KBigDecimal.

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

Addition operator for KBigDecimal.

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

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

Link copied to clipboard
open fun precision(): Int

Returns the precision of this KBigDecimal (total number of significant digits).

open fun precision(): Int

Returns the precision of this KBigDecimal (total number of significant digits).

Link copied to clipboard
open fun scale(): Int

Returns the scale of this KBigDecimal (number of digits to the right of the decimal point).

open fun scale(): Int

Returns the scale of this KBigDecimal (number of digits to the right of the decimal point).

Link copied to clipboard
actual open override fun setScale(scale: Int, roundingMode: Int): KBigDecimal

Returns a KBigDecimal with the specified scale and rounding mode.

expect open override fun setScale(scale: Int, roundingMode: Int): KBigDecimal

Returns a KBigDecimal with the specified scale and rounding mode.

actual open fun setScale(scale: Int, roundingMode: Int): KBigDecimal
Link copied to clipboard
actual open override fun signum(): Int

Returns the signum function of this KBigDecimal.

expect open override fun signum(): Int

Returns the signum function of this KBigDecimal.

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

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

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

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

Link copied to clipboard

Multiplication operator for KBigDecimal.

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

Converts this KBigDecimal to a KBigInteger by discarding the fractional part.

expect open override fun toBigInteger(): KBigInteger

Converts this KBigDecimal to a KBigInteger by discarding the fractional part.

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

Returns the string representation of this KBigDecimal.

expect open override fun toString(): String

Returns the string representation of this KBigDecimal.

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

Unary minus operator for KBigDecimal.

Link copied to clipboard

Unary plus operator for KBigDecimal (identity operation).