MyApp.Cldr.Number.Format.minimum_grouping_digits_for

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

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

View Source

Specs

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

Returns the minimum grouping digits for a locale.

Arguments

Returns

  • {:ok, minumum_digits} or

  • {:error, {exception, message}}

Examples

iex> MyApp.Cldr.Number.Format.minimum_grouping_digits_for("en")
{:ok, 1}