Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun toExponential(fractionDigits: Int = definedExternally): String
Link copied to clipboard
fun toFixed(digits: Int = definedExternally): String
Link copied to clipboard

Returns a value as a string value appropriate to the host environment's current locale.

open fun toLocaleString(locales: ReadonlyArray<UnicodeBCP47LocaleIdentifier>, options: NumberFormatOptions = definedExternally): String
open fun toLocaleString(locales: ReadonlyArray<Locale>, options: NumberFormatOptions = definedExternally): String
open fun toLocaleString(locales: Locale, options: NumberFormatOptions = definedExternally): String

open fun toLocaleString(locales: UnicodeBCP47LocaleIdentifier, options: NumberFormatOptions = definedExternally): String

Converts a value to a string by using the current or specified locale.

Link copied to clipboard
fun toPrecision(precision: Int = definedExternally): String