Re: printing floats, bigfloats, fortran floats



>>>>> "Robert" == Robert Dodier  writes:

    Robert> Ray,
    Robert> At present a float which is an integer (e.g. 1234.0)
    Robert> prints as nnnn. instead of nnnn.0 .
    Robert> This is due to the ~g format directive in EXPLODEN.

Check the latest version of commac.lisp.  Maxima prints it as 1234.0
now, because we don't use ~g anymore.  It selects ~e or ~f as
appropriate, and ~f prints a trailing 0.

    Robert> It turns out that Maxima scans nnnn. as an integer.
    Robert> I think we want to get a float input if a float was output.
    Robert> I guess we could either
    Robert> (1) change the parser so that nnn. scans as a float,
    Robert> or (2) change the formatting so that floats
    Robert> which are integers are printed with trailing 0,
    Robert> or (3) both.

    Robert> I'm leaning towards (1) (since I can imagine people
    Robert> typing 1234. anyway) but I'd be happy with (3).

I think 1234. is a float, but that differs from Lisp's interpretation
where 1234. is actually an integer.

But item (2) should already be fixed, so if you want to do (1), that
would be ok with me.

Ray