percent
fun percent(decimals: Int = 0, fraction: Boolean = true, locale: Locale = Locale.getDefault(), nullText: String = ""): (Any?) -> String(source)
Formats a Number as a percentage.
Parameters
fraction
Whether the stored value is a fraction. The default, true, reads 0.15 as 15%; pass false for a column that stores 15.0 and means the same.
decimals
Digits after the decimal separator, of the percentage rather than of the stored fraction: 1 renders 0.1234 as 12.3%.
locale
Decides the separators and where the percent sign sits.
null Text
What a null value renders as.