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
fun Double.format(pattern: String, groupingSeperator: Char, decimalSeperator: Char): String
fun Float.format(precision: Int? = null): String