>  Docs Center  >  Libraries  >  ASTROLIB  >  ORDINAL
Libraries

ORDINAL

ORDINAL

Name


ORDINAL

Purpose


Convert an integer to a correct English ordinal string:

Explanation


The first four ordinal strings are "1st", "2nd", "3rd", "4th" ....

Calling Sequence


result = ordinal( num )

Input Parameters


num = number to be made an ordinal. If float, will be FIXed.

Output Parameters


result = string such as '1st' '3rd' '164th' '87th', etc.

Modification History


Written by R. S. Hill, STX, 8 Aug. 1991
Converted to IDL V5.0 W. Landsman September 1997



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us