From ... From: Erik Naggum Subject: Re: Formatting numbers with commas Date: 1999/05/18 Message-ID: <3136031860717961@naggum.no>#1/1 X-Deja-AN: 479485370 References: <926498847.724712@fire-int> <373c45f9.67049562@news.mad.ttd.net> <37429e45.89828696@news.mad.ttd.net> <373e330c.54122954@news.mad.ttd.net> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * barranquero@laley-actualidad.es (Juanma Barranquero) | As I see it, the standard offers a way to print a number using the width | it has in the specified radix (similar to C's "%d"), but no way to do a | "%05d", for example. a format string of "~5,'0D" does this for me all the time. I don't think people expect (format "~23,'0,':,2:X" ) to produce a bunch of colon-separated pairs of leading 0's, like the Ethernet address formatter it could have been in an ideal world, and simply don't do this to begin with, which means we're not encroaching on people who have reasonable expectations. so, I think Barry's suggestion (to treat digit pad-chars specially) is the most sensible because it would make it possible to use this facility in ways that are currently producing undesirable results. #:Erik -- @1999-07-22T00:37:33Z -- pi billion seconds since the turn of the century