View Source SoftBank.Cldr.Number.Formatter.Decimal (soft_bank v1.2.6)
Summary
Functions
Formats a number according to a decimal format string.
Functions
@spec to_string( Cldr.Math.number_or_decimal(), String.t() | Cldr.Number.Format.Meta.t(), Keyword.t() | Cldr.Number.Format.Options.t() ) :: {:ok, String.t()} | {:error, {module(), String.t()}}
Formats a number according to a decimal format string.
Arguments
numberis an integer, float or Decimalformatis a format string. SeeSoftBank.Cldr.Numberfor further information.optionsis a map of options. SeeSoftBank.Cldr.Number.to_string/2for further information.