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".
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".