Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#888 closed defect (invalid)

format can produce 0+3

Reported by: Arthur Owned by:
Priority: normal Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: Cc:


In latest trunk, and afaik all earlier versions too, (format nil "~3,'0@D" 3) produces "0+3" - not "+03" as I'd expect.

Change History (2)

comment:1 Changed 9 years ago by gb

  • Resolution set to invalid
  • Status changed from new to closed (the description of ~D) says that "spaces are inserted on the left ..." and that if a pad character is provided it's used instead of #\space.

The output "0+3" certainly looks weird (if one is used to thinking of using #\0 as a pad character to produce leading zeroes), but the pad character just something that's "inserted on the left" if the digits and sign require fewer than mincol characters.

comment:2 Changed 9 years ago by gb

Uh, "the pad character IS just something ..."

Note: See TracTickets for help on using tickets.