Percentage
data class Percentage(val minIntegerDigits: UInt, val maxIntegerDigits: UInt, val minFractionDigits: UInt, val maxFractionDigits: UInt, val roundingMode: RoundingMode = RoundingMode.HalfEven) : NumberFormatStyle
Formats a number to a percentage value. 100% is represented by 1.0, so 0.8 will be formatted as 80%.
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)