View Source Bonfire.Common.Localise.Cldr.Number.Formatter.Decimal (Bonfire v0.9.10-classic-beta.169)
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
number
is an integer, float or Decimalformat
is a format string. SeeBonfire.Common.Localise.Cldr.Number
for further information.options
is a map of options. SeeBonfire.Common.Localise.Cldr.Number.to_string/2
for further information.