format

fun format(value: Double, decimalPlaces: Int): String(source)

Formats a double value with the specified number of decimal places.


fun format(value: Float, decimalPlaces: Int): String(source)

Formats a float value with the specified number of decimal places.