View Source Plausible.Cldr.Number.Formatter.Decimal (Plausible v0.0.1)
Link to this section Summary
Functions
Formats a number according to a decimal format string.
Link to this section 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
Arguments
number
is an integer, float or Decimalformat
is a format string. SeePlausible.Cldr.Number
for further information.options
is a map of options. SeePlausible.Cldr.Number.to_string/2
for further information.