Re: Peculiar number formatting?

"Pascal Bourguignon (as informatimago at gmail dot com)" <[email protected]> Thu, 21 May 2026 08:03:23 +0200
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
> By contrast, in Lisp
> 
> (format nil “~5,’0d” -15) => “00-15”   which looks totally weird to me.

It’s less weird if you consider that you can use any filler character you want, not just 0.

~5,’#d -> ##-15

Would -##15 be better? Granted a flag Sivan - : to indicate what option to use would be great. 

But : is already taken to group digits and @ to always print the sign. The other ASCII characters are taken for format specifiers. 
Hence the use of ~/.
-- 
__Bourguignon__

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html