Bug: format ~G of 1.0d0
Willem Broekema
metawilm at gmail.com
Tue Nov 7 21:20:57 UTC 2017
The following output seems to be wrong:(format nil "~G" 1.0d0)
"1.0 "
I expect it to be
"1. "
For the formula in CLHS "22.3.3.3 Tilde G: General Floating-Point"
I arrive at q=0, n=1, d=1, dd=0 where dd stands for the number of decimals
to print.
Allegro, ECL, SBCL agree with this.
Kind regards,
Willem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20171107/f80748e9/attachment.html>
More information about the armedbear-devel
mailing list