[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

55. engineering-format

Engineering-format changes the way maxima outputs floating-point numbers to the notation engineers are used to: a*10^b with b dividable by three.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

55.1 Functions and Variables for engineering-format

Option variable: engineering_format_floats

Default value: true

This variable allows to temporarily switch off engineering-format.

(%i1) load("engineering-format");
(%o1) 
    /maxima/share/contrib/engineering-format.lisp
(%i2) float(sin(10)/10000);
(%o2)                - 54.40211108893698e-6
(%i3) engineering_format_floats:false$
(%i4) float(sin(10)/10000);
(%o4)                - 5.440211108893698e-5

See also fpprintprec and float.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

55.2 Known Bugs

The output routine of SBCL 1.3.0 has a bug that sometimes causes the exponent not to be dividable by three. The value of the displayed number is still valid in this case.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Raymond Toy on May, 22 2016 using texi2html 1.76.