Cldr.Number.System.to_system-exclamation-mark
You're seeing just the function
to_system-exclamation-mark
, go back to Cldr.Number.System module for more information.
Specs
to_system!(Cldr.Math.number_or_decimal(), atom(), Cldr.backend()) :: binary() | no_return()
Converts a number into the representation of a non-latin number system. Returns a converted string or raises on error.
Arguments
number
is afloat
,integer
orDecimal
system_name
is any number system name returned byCldr.known_number_systems/0
or a number system type returned byCldr.known_number_system_types/0
backend
is anyCldr
backend. That is, any module that containsuse Cldr
Returns
string_of_digits
orraises an exception
See Cldr.Number.System.to_system/3
for further
information.
Examples
iex> Cldr.Number.System.to_system! 123, :hans, TestBackend.Cldr
"一百二十三"
iex> Cldr.Number.System.to_system! 123, :hant, TestBackend.Cldr
"一百二十三"
iex> Cldr.Number.System.to_system! 123, :hansfin, TestBackend.Cldr
"壹佰贰拾叁"