Cldr.Number.Formatter.Short.short_format_exponent
You're seeing just the function
short_format_exponent
, go back to Cldr.Number.Formatter.Short module for more information.
Returns the exponent that will be applied when formatting the given number as a short format.
This function is primarily intended to support
pluralization for compact numbers (numbers
formatted with the format: :short
option) since
some languages pluralize compact numbers differently
to a fully expressed number.
Such rules are defined for the locale "fr" from CLDR version 38 with the intention that additional rules will be added in later versions.
Examples
iex> Cldr.Number.Formatter.Short.short_format_exponent 1234
{1000, 1}
iex> Cldr.Number.Formatter.Short.short_format_exponent 12345
{10000, 2}
iex> Cldr.Number.Formatter.Short.short_format_exponent 123456789
{100000000, 3}
iex> Cldr.Number.Formatter.Short.short_format_exponent 123456789, locale: "th"
{100000000, 3}