Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class Greeting
Link copied to clipboard
Link copied to clipboard

Interface for arbitrary-precision decimal arithmetic. Provides operations for mathematical calculations with decimal numbers of unlimited precision.

Link copied to clipboard

Factory object for creating KBigDecimal instances. Provides convenient methods for creating KBigDecimal objects from various types.

Link copied to clipboard
actual class KBigDecimalImpl(value: String) : KBigDecimal
expect class KBigDecimalImpl(value: String) : KBigDecimal
actual class KBigDecimalImpl(value: String)
Link copied to clipboard
interface KBigInteger

Interface for arbitrary-precision integer arithmetic. Provides operations for mathematical calculations with integers of unlimited size.

Link copied to clipboard

Factory object for creating KBigInteger instances. Provides convenient methods for creating KBigInteger objects from various types.

Link copied to clipboard
actual class KBigIntegerImpl(value: String) : KBigInteger
expect class KBigIntegerImpl(value: String) : KBigInteger
actual class KBigIntegerImpl(value: String)
Link copied to clipboard
object KBigMath

Mathematical utility functions for KBigDecimal and KBigInteger. Provides advanced mathematical operations not available in the basic interfaces.

Link copied to clipboard
interface Platform
Link copied to clipboard

Rounding mode constants for KBigDecimal operations. These constants define how rounding should be performed when precision must be reduced.

Functions

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

Division operator for KBigDecimal with default scale and rounding.

operator fun KBigInteger.div(other: KBigInteger): KBigInteger

Division operator for KBigInteger.

Link copied to clipboard
actual fun getPlatform(): Platform
expect fun getPlatform(): Platform
actual fun getPlatform(): Platform
Link copied to clipboard

Returns the maximum of this KBigDecimal and the specified value.

Returns the maximum of this KBigInteger and the specified value.

Link copied to clipboard

Returns the minimum of this KBigDecimal and the specified value.

Returns the minimum of this KBigInteger and the specified value.

Link copied to clipboard

Subtraction operator for KBigDecimal.

Subtraction operator for KBigInteger.

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

Addition operator for KBigDecimal.

operator fun KBigInteger.plus(other: KBigInteger): KBigInteger

Addition operator for KBigInteger.

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

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

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

Multiplication operator for KBigDecimal.

Multiplication operator for KBigInteger.

Link copied to clipboard

Converts a Double to a KBigDecimal.

Converts a Float to a KBigDecimal.

Converts an Int to a KBigDecimal.

Converts a Long to a KBigDecimal.

Converts a String to a KBigDecimal.

Link copied to clipboard

Converts an Int to a KBigInteger.

Converts a Long to a KBigInteger.

Converts a String to a KBigInteger.

Link copied to clipboard

Unary minus operator for KBigDecimal.

Unary minus operator for KBigInteger.

Link copied to clipboard

Unary plus operator for KBigDecimal (identity operation).

Unary plus operator for KBigInteger (identity operation).