Cldr.Number.System.number_system_digits

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

number_system_digits(system_name)

View Source

Specs

number_system_digits(system_name()) ::
  {:ok, String.t()} | {:error, {module(), String.t()}}

Returns {:ok, digits} for a number system, or an {:error, message} if the number system is not known.

Arguments

Returns

  • {:ok, string_of_digits} or

  • {:error, {exception, reason}}

Examples

iex> Cldr.Number.System.number_system_digits(:latn)
{:ok, "0123456789"}

iex> Cldr.Number.System.number_system_digits(:nope)
{:error, {Cldr.UnknownNumberSystemError, "The number system :nope is not known or does not have digits"}}