formatToDecimal

fun Double?.formatToDecimal(locale: Locale = Locale()): String

Format the Double to decimal notation, rounded to significant digits. PI.formatToDecimal() = "3.14159"