toChangeLabel

fun Double.toChangeLabel(previous: Double, decimals: Int = 1): String(source)

Formats the percentage change from previous to this value as a signed string. Returns "N/A" if previous is zero. Example: 120.0.toChangeLabel(100.0) → "+20.0%"