Cldr.Number.to_number_system

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

to_number_system(number, system, backend \\ default_backend())

View Source

Specs

to_number_system(number(), atom(), Cldr.backend()) ::
  String.t() | {:error, {module(), String.t()}}

Converts a number from the latin digits 0..9 into another number system. Returns {:ok, string} or {:error, reason}.

Examples

iex> Cldr.Number.to_number_system 123, :hant, TestBackend.Cldr
{:ok, "一百二十三"}

iex> Cldr.Number.to_number_system 123, :hebr, TestBackend.Cldr
{:ok, "קכ״ג"}