Bonfire.Common.Localise.Cldr.Number.Formatter.Decimal (Bonfire v1.0.0-social-rc.3.22)
View SourceSummary
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. SeeBonfire.Common.Localise.Cldr.Numberfor further information.optionsis a map of options. SeeBonfire.Common.Localise.Cldr.Number.to_string/2for further information.