toOrdinal: Cardinal to ordinal number conversion function
Description
Function for converting cardinal to ordinal numbers by adding a language specific ordinal indicator (http://en.wikipedia.org/wiki/Ordinal_indicator) to the number.
Postive integer (cardinal number) to be converted to an ordinal number. For example 1 becomes 1st, 2 becomes 2nd, ...
language
OPTIONAL. Language (defaults to English) indicating what language rules to use in conversion to ordinal number.
convert_to
OPTIONAL. Output type that provided 'cardinal_number' is converted into. Default is 'ordinal_number' which refers to the 'cardinal_number' followed by the appropriate ordinal
indicator. Additional options planned include 'ordinal_word'.
Value
Function returns the ordinal number or ordinal word (as a character string).
Details
Typical use of the function is to submit a positive integer for conversion to an ordinal number in the language specified. See examples.