Cldr Numbers v2.13.0-rc.0 Cldr.Number.Format.Options View Source
Functions to validate and transform options that guide number formatting
Link to this section Summary
Link to this section Types
Link to this type
fixed_formats()
View Sourcefixed_formats() :: :standard | :currency | :accounting | :short | :long
Link to this type
short_format_styles()
View Sourceshort_format_styles() :: :currency_short | :currency_long | :decimal_short | :decimal_long
Link to this type
t()
View Sourcet() :: %Cldr.Number.Format.Options{
currency: Cldr.Currency.code(),
currency_digits: pos_integer(),
currency_spacing: map(),
currency_symbol: term(),
format: format(),
fractional_digits: pos_integer(),
locale: Cldr.LanguageTag.t(),
minimum_grouping_digits: pos_integer(),
number_system: Cldr.Number.System.system_name(),
pattern: String.t(),
round_nearest: pos_integer(),
rounding_mode: Decimal.rounding(),
symbols: Cldr.Number.Symbol.t()
}
Link to this section Functions
Link to this function
validate_options(number, backend, options)
View Sourcevalidate_options(Cldr.Math.number_or_decimal(), Cldr.backend(), [ {atom(), term()} ]) :: {:ok, t()} | {:error, {module(), String.t()}}