If you thought printf was complicated...

One of the dropped features of the Common Lisp format function, the ~u directive:

CL-USER> (format nil "~Umeters" 50300.0)
"50.5 kilometers"
CL-USER>

via Peter Seibel, who has much more context on his blog post.