Companion
object Companion
Functions
Link copied to clipboard
fun formatNumber(number: Number, precision: Int, tailingFractionZeros: Boolean, locale: Locale): CharSequence
Formats a number using the given parameters
Link copied to clipboard
fun getFormattedArea(squareMeters: Double, unitValue: Double, precision: Int, tailingFractionZeros: Boolean): LocalizedString
Creates a LocalizedString that contains a text with an area
Link copied to clipboard
fun getFormattedLength(meters: Double, unitValue: Double, precision: Int, tailingFractionZeros: Boolean): LocalizedString
Creates a LocalizedString that contains a text with a length
Link copied to clipboard
Creates a LocalizedString that contains a text with a time span
Link copied to clipboard
fun getFormattedWeight(grams: Double, unitValue: Double, precision: Int, tailingFractionZeros: Boolean): LocalizedString
Creates a LocalizedString that contains a text with a weight
Link copied to clipboard
Luck up the NumberFormattingInfo to be used for the given locale