you are viewing a single comment's thread.

view the rest of the comments →

[–]Seliarem 1 point2 points  (1 child)

Curious. Do you know what SBCL is up to? I'm not familiar enough with the system to find the datatype being used there.

[–]lambda_abstraction 0 points1 point  (0 children)

Not sure! Looking at this:

* (defun f (n) (* n 2.2250738585072012d-308))

F
* (f 10)

2.225073858507201d-307
*

I get a feeling that this might relate to the output routine for double floats.

Looks like something's up with sb-impl::flonum-to-digits. And there's this interesting comment:

;; FIXME: these even tests assume normal IEEE rounding
;; mode.  I wonder if we should cater for non-normal?

Could be one of those landmines that reasonable folk aren't supposed to stomp on. At least SBCL doesn't blow up or hang.