toPercent

fun Double.toPercent(decimals: Int = 1): String(source)

Formats a Double in the range 0.0, 1.0 as a percentage string. Example: 0.753.toPercent() → "75.3%"