Cldr.Number.PluralRule.plural_type

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

plural_type(number, backend \\ nil, options \\ [])

View Source

Returns the plural type for a given number.

Arguments

  • number is an integer, float or Decimal number

  • backend is any module that includes use Cldr and therefore is a Cldr backend module. The default is Cldr.default_backend!/0.

  • options is a keyword list of options

Options

Examples

iex> Cldr.Number.PluralRule.plural_type(123)
:other

iex> Cldr.Number.PluralRule.plural_type(123, type: Ordinal)
:few

iex> Cldr.Number.PluralRule.plural_type(123, type: Cardinal)
:other

iex> Cldr.Number.PluralRule.plural_type(2, locale: "de")
:other