ordinal

This function converts the number to the corresponding ordinal. The language of the ordinal is determined by the output language setting in the ITP Administrator window.

ordinal ( input_number )

The result of this function is of type TEXT: the input_number as an ordinal.

This function has 1 parameter:

  1. input_number, type NUMBER: the number to turn into an ordinal.

The function is only defined for numbers from 1 up to 100.

Example

@( ordinal( 9 ) ) 

Result: ninth.

Note that the construction @ ( ) around the function means that the result of the function is displayed in the text. This construction must be used in a text part of a model document. The switch from ITP mode to text mode in a model document is made with the # characters. An ITP model document starts in text model, the #BEGIN makes the switch to ITP mode.

This function is supported for number values from 1 to 100. Above 100 the result of the function is undefined (although for some languages the result might be correct). You are recommended not to use this function for values over 100 and under 1.