Decimal

data class Decimal(val minIntegerDigits: UInt, val maxIntegerDigits: UInt, val minFractionDigits: UInt, val maxFractionDigits: UInt, val roundingMode: RoundingMode = RoundingMode.HalfEven) : NumberFormatStyle

Formats a number to a decimal representation

Parameters

minIntegerDigits

The minimum number of integer digits to show. Defaults to 0U.

maxIntegerDigits

The maximum number of integer digits to show. Defaults to 309U.

minFractionDigits

The minimum number of decimal digits to show. Defaults to 0U.

maxFractionDigits

The maximum number of decimal digits to show. Defaults to 325U.

roundingMode

The RoundingMode to be applied. Defaults to RoundingMode.HalfEven.

Constructors

Link copied to clipboard
constructor(minIntegerDigits: UInt, maxIntegerDigits: UInt, minFractionDigits: UInt, maxFractionDigits: UInt, roundingMode: RoundingMode = RoundingMode.HalfEven)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val roundingMode: RoundingMode