UnitOfMeasure

sealed interface UnitOfMeasure(source)

Common interface for all units of measurement.

See also

Inheritors

Properties

Link copied to clipboard
abstract val symbol: String

The symbol used to represent this unit.

Functions

Link copied to clipboard
open fun format(value: Double, decimalPlaces: Int = Int.MAX_VALUE): String

Formats a value with this unit's symbol.