Cldr.Number.Format.minimum_grouping_digits_for

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

minimum_grouping_digits_for(locale, backend)

View Source

Specs

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

Returns the minium grouping digits for a locale.

Arguments

Returns

  • {:ok, minumum_digits} or

  • {:error, {exception, message}}

Examples

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