N'th: Difference between revisions

Content deleted Content added
Proton (talk | contribs)
Proton (talk | contribs)
Line 509:
 
(defun add-suffix (n)
"A more compact and efficientconcise, albeit less readable version"
(format nil "~d'~:[~[th~;st~;nd~;rd~:;th~]~;th~]" n (< (mod (- n 10) 100) 10) (mod n 10)))