Package-level declarations

Types

Link copied to clipboard
interface NumberFormatter
Link copied to clipboard
data class NumberFormatterOptions(val abbreviate: Boolean = DEFAULT_ABBREVIATE, val prefix: String = DEFAULT_PREFIX, val postfix: String = DEFAULT_POSTFIX, val decimals: Int = DEFAULT_DECIMALS_ABBREVIATED, val enforceDecimals: Boolean = DEFAULT_ENFORCE_DECIMALS, val decimalSeparator: String = DEFAULT_DECIMAL_SEPARATOR, val thousandsSeparator: String = DEFAULT_THOUSAND_SEPERATOR) : NumberFormatterRawOptions
Link copied to clipboard
data class NumberFormatterOptionsConstructor(val abbreviate: Boolean = DEFAULT_ABBREVIATE, val prefix: String = DEFAULT_PREFIX, val postfix: String = DEFAULT_POSTFIX, val decimals: Int = DEFAULT_DECIMALS_ABBREVIATED, val enforceDecimals: Boolean = DEFAULT_ENFORCE_DECIMALS, val decimalSeparator: String = DEFAULT_DECIMAL_SEPARATOR, val thousandsSeparator: String = DEFAULT_THOUSAND_SEPERATOR) : NumberFormatterRawOptions
Link copied to clipboard

Functions

Link copied to clipboard
fun Number.format(abbreviate: Boolean = DEFAULT_ABBREVIATE, prefix: String = DEFAULT_PREFIX, postfix: String = DEFAULT_POSTFIX, decimals: Int? = null, enforceDecimals: Boolean = DEFAULT_ENFORCE_DECIMALS, decimalSeparator: String = DEFAULT_DECIMAL_SEPARATOR, thousandsSeparator: String = DEFAULT_THOUSAND_SEPERATOR): String
Link copied to clipboard
inline fun NumberFormatter(options: NumberFormatterRawOptions = NumberFormatterOptions()): NumberFormatter
fun NumberFormatter(abbreviate: Boolean = NumberFormatterOptions.DEFAULT_ABBREVIATE, prefix: String = NumberFormatterOptions.DEFAULT_PREFIX, postfix: String = NumberFormatterOptions.DEFAULT_POSTFIX, decimals: Int? = null, enforceDecimals: Boolean = NumberFormatterOptions.DEFAULT_ENFORCE_DECIMALS, decimalSeparator: String = NumberFormatterOptions.DEFAULT_DECIMAL_SEPARATOR, thousandsSeparator: String = NumberFormatterOptions.DEFAULT_THOUSAND_SEPERATOR): NumberFormatter