KBRoundingMode

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.

Entries

Link copied to clipboard

Rounds away from zero.

Link copied to clipboard

Rounds towards zero.

Link copied to clipboard

Rounds towards positive infinity.

Link copied to clipboard

Rounds towards negative infinity.

Link copied to clipboard

Rounds towards the nearest neighbour; ties are rounded away from zero.

Link copied to clipboard

Rounds towards the nearest neighbour; ties are rounded towards zero.

Link copied to clipboard

Rounds towards the nearest neighbour; ties are rounded to the even neighbour.

Link copied to clipboard

Asserts that rounding is unnecessary; throws if precision would be lost.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Stable identifier matching legacy integer constants (see RoundingMode).

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.