format

fun Float.format(digits: Int, locale: Locale? = null): String

Formats this Float to string using specified number of digits and a given locale