There is always a zero for the last digit in ~g formatted output when
the exponential form is used:

(format nil "~9,6g" (* pi 1e8))
"3.141590e+8"
(format nil "~9,5g" (* pi 1e8))
"3.14160e+8"
(format nil "~9,4g" (* pi 1e8))
"3.1420e+8"
(format nil "~9,3g" (* pi 1e8))
" 3.140e+8"
(format nil "~9,2g" (* pi 1e8))
"  3.10e+8"

This is incorrect.

This is on SBCL 0.8.19.15 on Linux i386; sent also to cmucl at the
request of rtoym who believes it will display the same behavior.

Liam


Reply via email to