Cldr.Number.Format.decimal_format_styles_for
You're seeing just the function
decimal_format_styles_for
, go back to Cldr.Number.Format module for more information.
Specs
decimal_format_styles_for( Cldr.LanguageTag.t() | Cldr.Locale.locale_name(), Cldr.Number.System.system_name(), Cldr.backend() ) :: {:ok, [atom()]} | {:error, {module(), String.t()}}
Returns the decimal format styles that are supported by
Cldr.Number.Formatter.Decimal
.
Arguments
locale
is any valid locale name returned byCldr.known_locale_names/1
or aCldr.LanguageTag
struct returned byCldr.Locale.new!/2
. The default isCldr.get_locale/1
number_system
is any valid number system or number system type returned byCldr.Number.System.number_systems_for/2
backend
is anyCldr
backend. That is, any module that containsuse Cldr
Example
iex> Cldr.Number.Format.decimal_format_styles_for("en", :latn, MyApp.Cldr)
{:ok, [:accounting, :currency, :currency_long, :percent,
:scientific, :standard]}