On 03/31/2013 05:21 AM, Volker van Nek wrote:
> (%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.
Yes I think this is what he wants. When working with floating point I
often set fpprintprec:5 or so. Rarely do I care about more than about 5
digits of any number I read off the screen, since this just affects
printing, it's perfect.
for convenience it's useful also to know about fpprec which controls the
actual calculation precision when using bfloats, it's more or less the
number of decimal digits of accuracy, doesn't affect standard floats at all.