Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class KBigDecimal(val unscaledValue: KBigInteger, val scale: Int = 0) : Comparable<KBigDecimal>

Arbitrary-precision decimal arithmetic. Pure Kotlin implementation.

Link copied to clipboard
class KBigInteger(val signum: Int, val magnitude: IntArray) : Comparable<KBigInteger>

arbitrary-precision integer arithmetic. Pure Kotlin implementation.

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

Cross-platform representation of rounding behaviors supported by KBigDecimal operations. The enum mirrors the semantics of java.math.RoundingMode while providing type-safety and shared documentation across Kotlin Multiplatform targets.

Link copied to clipboard
interface Platform

Functions

Link copied to clipboard

Infix function for bitwise AND.

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

Division operator for KBigDecimal with default scale and rounding. WARNING: This currently defaults to a fixed scale of 10 and HALF_UP rounding. For precise control, use the divide method directly.

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
Link copied to clipboard
Link copied to clipboard

Subtraction operator for KBigDecimal.

Subtraction operator for KBigInteger.

Link copied to clipboard

Infix function for bitwise OR.

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
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).

Link copied to clipboard

Infix function for bitwise XOR.