discountLabel

fun Double.discountLabel(salePrice: Double, decimals: Int = 0): String(source)

Returns a discount label string. Example: 100.0.discountLabel(80.0) → "-20%"