Cldr.Number.Format.default_grouping_for

You're seeing just the function default_grouping_for, go back to Cldr.Number.Format module for more information.
Link to this function

default_grouping_for(locale, backend)

View Source

Specs

default_grouping_for(
  Cldr.LanguageTag.t() | Cldr.Locale.locale_name(),
  Cldr.backend()
) :: {:ok, non_neg_integer()} | {:error, {module(), String.t()}}

Returns the default grouping for a locale.

Arguments

Returns

  • {:ok, minumum_digits} or

  • {:error, {exception, message}}

Examples

iex> Cldr.Number.Format.default_grouping_for("en", MyApp.Cldr)
{:ok, %{fraction: %{first: 0, rest: 0}, integer: %{first: 3, rest: 3}}}