cdtech9198
IS-IT--Management
I am trying to output the suffix for streets. and avenue numbers But not sure what method to use to extract the first string. I need to use a switch statement for each of the cases below. What do you recommend I use for the following:
•Numbers with a 1 in the tens place (for example: 11, 14, 216) should have a 'th' suffix
•All other numbers ending in 1 should have a 'st' suffix
•All other numbers ending in 2 should have a 'nd' suffix
•All other numbers ending in 3 should have a 'rd' suffix
•All other Numbers should have a 'th' suffix
thank you.
•Numbers with a 1 in the tens place (for example: 11, 14, 216) should have a 'th' suffix
•All other numbers ending in 1 should have a 'st' suffix
•All other numbers ending in 2 should have a 'nd' suffix
•All other numbers ending in 3 should have a 'rd' suffix
•All other Numbers should have a 'th' suffix
thank you.