Skip to content
Snippets Groups Projects
Commit 3c160594 authored by rtoy's avatar rtoy
Browse files

Revise again. Don't limit the fraction digits. Just print out

whatever dd says.  This allows ~G to match what Fortran does, and also
defers to ~F to let it decide what to do.

The following tests now fail:

(assert (string= (format nil "~9,5G" pi) "3.142    "))
(assert (string= (format nil "~12,,,,'%g" 1.2345678d1) "12.34568 "))

The former should be
(assert (string= (format nil "~9,5G" pi) "3.1416    "))

and the latter should be removed or changed to

(assert (string= (format nil "~12,,,,'%g" 1.2345678d1) "%%%%%%%%%%%%"))
parent e3796de3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment