Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Tamas K Papp <tkpapp@gm...> - 2009-05-02 19:36:51
On Sat, 02 May 2009 18:02:19 +0000, Tamas K Papp wrote:
> (format nil "~,2f" 2.219822937194833d-6)
> in SBCL gives
> I expected 2 zeros after the decimal point. Is this a bug, or did I
> miss something in the standard?
I looked at the source, and now I think it is a bug in
(sb!impl::flonum-to-string 2.219822937194833d-6 nil 2 0)
but I don't understand the internals of flonum-to-string well enough
to go further. I have worked around the problem, but in the long run
a fix would be nice.
By the way, how do SBCL developers debug these functions? I tried
step, as in
(step (sb!impl::flonum-to-string 2.219822937194833d-6 nil 2 0))
Unless I (declaim (optimize (debug 3))) and recompile, the stepper
does not go inside the function, which is what I expected. But even
when I set debug to 3, step shows function calls without arguments, eg
(+ FDIGITS E)
With unknown arguments
I am curious on how to get around this.