On Mon, Feb 25, 2002 at 11:28:33PM +0000, Daniel Barlow wrote:
> Observed in both 0.6.13 and 0.7.1.2, the ~D directive doesn't always
> work on floats -
> * (format nil "~D" 0.3)
> * (format nil "~2D" 0.3)
> According to CLHS 220.127.116.11 Tilde D: Decimal
> If arg is not an integer, it is printed in ~A format and decimal base.
> In some sense we could claim that printing the argument even when
> (format nil ...) was used is conforming to the letter of the spec.
> I'm not sure it'd go down too well, though ...
> CMUCL returns "0.3", so this is presumably something new since the fork.
The problem seems to be the (PRINC NUMBER) statement in
FORMAT-PRINT-INTEGER, which should be (PRINC NUMBER STREAM). With that
changed, things seem to work in my current checked-out version.
William Harold Newman <william.newman@...>
"Look on my works, ye Mighty, and despair!" -- Ozymandias, King of Kings
PGP key fingerprint 85 CE 1C BA 79 8D 51 8C B9 25 FB EE E0 C3 E5 7C