withSign

fun Double.withSign(decimals: Int = 0): String(source)

Formats a number with an explicit sign prefix. Example: 42.0.withSign() → "+42.0"