Hi, I'm trying to make a calendar inside my game which would show a number and after it have it say "st", "nd", "rd" and "th" based on the day.
So I thought that I could check to see what the last digit of the number is and then set the text to the whole number and then "st" or "nd" etc...
I would need to change this for 11,12 and 13 since these end with "th", but since they are only 3, it won't be such a hassle.
Are there any better ways of doing this?
If not, then how do I get the last digit from a number?