formatSmart

fun Double?.formatSmart(locale: Locale): String

"Smart format" the Double. PI.formatSmart() = "3.14159"