toSignedPercent

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

Formats a percentage with an explicit sign (useful for change indicators). Example: (-0.05).toSignedPercent() → "-5.0%" Example: 0.12.toSignedPercent() → "+12.0%"