format

fun Double.format(pattern: String): String
fun Double.format(pattern: String, init: DecimalFormat.() -> Unit): String
fun Double.format(pattern: String, roundingMode: RoundingMode): String
fun Double.format(pattern: String, groupingSeperator: Char): String