Page 1 of 1

23th -> 23rd

Posted: 05 February 2016, 04:10
by xaxazak
I suggest fixing the suffix for placing numbers.

I think the rule is, for a number with digits XYZ:

suffix = "th" if Y = 1.
else suffix = "st" if Z = 1.
else suffix = "nd" if Z = 2.
else suffix = "rd" if Z = 3.
else suffix = "th".