NumberFormatter.Style.ordinal
An ordinal style format.
Declaration
case ordinalDiscussion
For example, in the en_US locale, the number 3 is represented as 3rd; in the fr_FR locale, the number 3 is represented as 3e.
An ordinal style format.
case ordinalFor example, in the en_US locale, the number 3 is represented as 3rd; in the fr_FR locale, the number 3 is represented as 3e.