SoftBank.Cldr.Number.Format.minimum_grouping_digits_for
You're seeing just the function
minimum_grouping_digits_for
, go back to SoftBank.Cldr.Number.Format module for more information.
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
locale
is any valid locale name returned byCldr.known_locale_names/0
or aCldr.LanguageTag
struct returned bySoftBank.Cldr.Locale.new!/1
. The default isSoftBank.Cldr.get_locale/0
Returns
{:ok, minumum_digits}
or{:error, {exception, message}}
Examples
iex> SoftBank.Cldr.Number.Format.minimum_grouping_digits_for("en")
{:ok, 1}