Category:

Miscellaneous

Adds the ordinal suffix to an integer.

Syntax

ordinal_number(
  x Integer,
  Language String,
  Case String,
  Gender String
): String

Parameters

x is the original number.

Language is the code of the language in which the result must be represented. Possible values: 'en-US' (American English), 'uk-UA' (Ukrainian).

Case (from 'A' to 'F') is for Ukrainian language only and ignored for other languages.

Gender ('M', 'F', 'N') is for Ukrainian language only and ignored for other languages.

Return value

Type: String. Returns the resulting string.

Examples of using

ordinal_number(15, 'en-US', 'A', 'M')