0
You could maybe create an array..someting in the line of 1 = st, 2 = de, 3 = de. When your number ends with one of these, you could asign it, in an 10 item array. You never know unless you try.
0
What you could do, is firstly converting the number to a string. Then take the last character of the string, and use it in a select statement. Depending on the last character of the number (now a string) you would append the appropriate suffix to the converted string.