Cldr.Number.Formatter.Decimal.to_string

You're seeing just the function to_string, go back to Cldr.Number.Formatter.Decimal module for more information.
Link to this function

to_string(number, format, backend, options \\ [])

View Source

Specs

to_string(Cldr.Math.number_or_decimal(), String.t(), Cldr.backend(), list()) ::
  {:ok, String.t()} | {:error, {module(), String.t()}}
to_string(
  Cldr.Math.number_or_decimal(),
  String.t(),
  Cldr.backend(),
  Cldr.Number.Format.Options.t()
) :: {:ok, String.t()} | {:error, {atom(), String.t()}}

Formats a number according to a decimal format string.

Arguments

  • number is an integer, float or Decimal

  • format is a format string. See Cldr.Number for further information.

  • backend is any module that includes use Cldr and therefore is a Cldr backend module

  • options is a map of options. See Cldr.Number.to_string/2 for further information.