NumberFormatter

Pure Kotlin number formatting utility — no expect/actual needed.

Functions

Link copied to clipboard
fun format(value: Double, decimalPlaces: Int): String

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

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

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