[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue: FORMAT-COMMA-INTERVAL (Version 2)

First of all, there is a typo in one of the test cases. (format nil "~19,0,'
,4:B" 3333) should be (format nil "~19,'0,' ,4:B" 3333), i.e., the pad character
should be quoted.

This example is somewhat problematic. Just what is the interaction of "insert
comma characters" and "pad the output with padchar?" If padding is to be added
after the commas are inserted, then the result should be "000001101 0000 0101"
instead of "0000 1101 0000 0101". To produce the latter result, either commas
must be inserted after padding, or somehow both done simultaneously. In this
case does the padding get commas or not? The above example says yes, but this
seems like the wrong answer for the "default" case of (format nil "~20:D"
1234567890) => "    1,234,567,890" (not " ,  1,234,567,890"!) Does this need a
separate clarification, ir is the example simply wrong?

		-- Andy. --