Integer

data class Integer(val minDigits: UInt, val maxDigits: UInt, val roundingMode: RoundingMode = RoundingMode.HalfEven) : NumberFormatStyle

Formats a number to an integer representation

Parameters

minDigits

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

maxDigits

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

roundingMode

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

Constructors

Link copied to clipboard
constructor(minDigits: UInt, maxDigits: UInt, roundingMode: RoundingMode = RoundingMode.HalfEven)

Properties

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