The function should take the last digit.. and then..
if it is '1' append 'st'
if it is '2' append 'nd'
if it is '3' append 'rd'
if it is '4' append 'th'
if it is '5' append 'th'
if it is '6' append 'th'
if it is '7' append 'th'
if it is '8' append 'th'
if it is '9' append 'th'
if it is '0' append 'th'
edit: I only want the function to perform if the number is less than or equal to 999.
[ 12-08-2001 09:40 PM: Message edited by: Synotic ]