MyApp.Cldr.Number.Format.default_grouping_for

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

default_grouping_for(locale \\ MyApp.Cldr.get_locale())

View Source

Specs

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

Returns the default grouping for a locale as a map.

Arguments

Returns

  • {:ok, grouping} or

  • {:error, {exception, message}}

Examples

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