next up previous
Next: CHR_OTOI - Read an INTEGER value from an octal string
Up: Routine Descriptions
Previous: CHR_MTOE - Translate a string from the machine's character set to EBCDIC

CHR_NTH  -  Return the two-character ordinal abbreviation for a specified integer

Description:
Return the two character ordinal abbreviation (i.e. st, nd, rd, th) appropriate for the given integer value.

Invocation:
RESULT = CHR_NTH( IVALUE )

Arguments:
IVALUE = INTEGER (Given)
The integer for which the abbreviation is required.

Returned Value:
CHR_NTH = CHARACTER 2
The appropriate two character abbreviation for the given integer value.



next up previous
Next: CHR_OTOI - Read an INTEGER value from an octal string
Up: Routine Descriptions
Previous: CHR_MTOE - Translate a string from the machine's character set to EBCDIC



CHR Character Handling Routines
Starlink User Note 40
A C Charles
P C T Rees
A J Chipperfield
2 August 1995
E-mail:ussc@star.rl.ac.uk