(%i1) 0.00017;
(%o1) 1.7000000000000001E-4
(%i2) fpprintprec : 12$
(%i3) 0.00017;
(%o3) 1.7E-4
fpprintprec = floating pont printing precision
just controls printing and does not affect calculation.
Maybe this is what you want.
Volker van Nek
2013/3/28 Marco Frigerio <marco.frigerio at iit.it>
> Hi,
>
> sorry I looked into the manual but I cannot find a solution:
>
> (%i74) 0.0017;
> (%o74) 0.0017
> (%i75) 0.00017;
> (%o75) 1.7000000000000001E-4
>
> why is the second example displayed like that? I guess it has something to
> do with the floating point precision, but i would like to prevent it, I
> don't care about any loss of precision.
> I mean, I'd like that 0.00017 results either in 0.00017 (exactly the same)
> or 1.7E-4
>
> Thank you very much
>
> MF
> ______________________________**_________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/**mailman/listinfo/maxima<http://www.math.utexas.edu/mailman/listinfo/maxima>
>