Institut für Astronomie und AstrophysikAbteilung AstronomieWaldhäuser Str. 64, D-72076 Tübingen, Germany |
ORDINAL
Convert an integer to a correct English ordinal string:
The first four ordinal strings are "1st", "2nd", "3rd", "4th" ....
result = ordinal( num )
num = number to be made an ordinal. If float, will be FIXed.
result = string such as '1st' '3rd' '164th' '87th', etc.
Written by R. S. Hill, STX, 8 Aug. 1991 Converted to IDL V5.0 W. Landsman September 1997
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]