>>>>> "Rodrigo" == Rodrigo Ventura <[EMAIL PROTECTED]> writes:

    Rodrigo> Hello all,

    Rodrigo> is there a way to get rid of the "d"s and the "f"s when format (~a 
or
    Rodrigo> ~f) prints doubles and floats? Setting *read-default-float-format* 
to
    Rodrigo> 'double-float helps, since doubles are printed properly (i.e., with
    Rodrigo> "e"s), but simple floats are printed with "f"'s.

    Rodrigo> The problem is that foreign software doesn't like floats printed 
with
    Rodrigo> "f"s or "d"s instead of the *common* "e"s (e.g., gnuplot).

If you can live with using ~e to write your floats, you can try
something like

(format t "~,,,,,,'ee" pi) => 3.141592653589793e+0
(format t "~,,,,,,'ee" 42.0f0)=> 4.2e+1

Otherwise, I'm not really sure there's a portable way to do that.
This will at least make gnuplot happy.

Ray


Reply via email to