View Source Plausible.Cldr.Number.Formatter.Decimal (Plausible v0.0.1)
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. SeePlausible.Cldr.Number
for further information.options
is a map of options. SeePlausible.Cldr.Number.to_string/2
for further information.