From: Albert Reiner
Subject: format: ~G
Date: 
Message-ID: <vw8u0f4qknu.fsf@berry.phys.ntnu.no>
Hi,

I have a minor problem with printing floating point numbers: I wanted
to use the ~G directive to get readable output where everything is
nicely aligned.  The best I have been able to come up with is:

,----
| CL-USER> (map nil (lambda (x y) (format t "~&  ~20,13,2G:  ~20,13,2G" x y))
|               (list 1d0 1.5d0 2d0 3d30) (list -1d0 -0.5d0 0d0 1d-20))
|     1.000000000000    :   -1.000000000000    
|     1.500000000000    :  -0.5000000000000    
|     2.000000000000    :    0.000000000000    
|    3.0000000000000d+30:   1.0000000000000d-20
| NIL
`----

But as you can see, the decimal points don't line up.  How can I get
something like 

,----
|     1.000000000000    :  -1.000000000000    
|     1.500000000000    :  -0.500000000000
|     2.000000000000    :   0.000000000000    
|     3.000000000000d+30:   1.000000000000d-20
`----

instead?

Thanks in advance,

Albert.