I would like to format floats by giving them a maximum width that they
are permitted to use. If they need less then use less. That is pad with
no extra characters. I can't figure out an efficient way to do this.
This will work but not efficiently or convienently:
(format t "~a" (string-left-trim " " (format nil "~10f" 1.0)))
Anyone have another suggestion. Thanks.
--
John Watton
Alcoa Inc.
Sent via Deja.com http://www.deja.com/
Before you buy.