#2714 1e-12 printed as 0.0 10^-13

None
wont-fix
nobody
display (1)
5
2014-06-15
2014-03-31
Romano Giannetti
No

Problem:

(%i1) c:1e-12;
(%o1)                               0.0E-13
(%i2) c:1.1e-12;
(%o2)                               1.1E-12

then the variable c works correctly, but it is a bit surprising...
This is out-of-the box maxima on:

-------------------------------------------------------------
Maxima version: "5.30.0"
Maxima build date: "2013-07-24 06:48:36"
Host type: "i686-pc-linux-gnu"
Lisp implementation type: "GNU Common Lisp (GCL)"
Lisp implementation version: "GCL 2.6.7"
-------------------------------------------------------------

Thank you!

Discussion

  • Robert Dodier
    Robert Dodier
    2014-04-01

    • labels: --> display
    • status: open --> wont-fix
     
  • Robert Dodier
    Robert Dodier
    2014-04-01

    This is a bug in GCL. It is fixed in GCL 2.6.10. Marking this "wont-fix" since it is not a bug in Maxima.

     
  • FWIW, in the (upcoming) Ubuntu 14.04 it is fixed. The strange thing is that maxima does not require the package GCL... is this embedded?

     
  • Robert Dodier
    Robert Dodier
    2014-04-09

    Maxima is compiled by GCL and the result is an executable image which contains all of GCL plus all of Maxima (that is very typical for Lisp applications). Maxima makes use of many functions in GCL, including the function which formats floats.