exact decimal type, was: 12.3*70.95 a little bit weird
Subject: exact decimal type, was: 12.3*70.95 a little bit weird
From: Jaime Villate
Date: Wed, 30 Nov 2011 14:20:49 +0000
On 11/30/2011 01:55 PM, Stavros Macrakis wrote:
> For your application, wouldn't it be enough to set fpprintprec to 14
> or 15?
>
> In fact, perhaps that should be the default. The naive user will get
> results that are rounded correctly -- with more than enough digits for
> practical purposes.
>
> The sophisticated user can reset fpprintprec to false in order to have
> numbers print in such a way that they can be read back in exactly.
Hi Stravos,
yes, as a matter of fact that solves my problems. I also agree with your
proposal.
Cheers,
Jaime