Calculate floating point decimals in internally used long double precision.
Fixes bug #4092 (calculator imprecision)

svn path=/trunk/; revision=44304
This commit is contained in:
Gregor Schneider 2009-11-28 15:01:40 +00:00
parent 3ba0c60504
commit 91523d7181

View file

@ -266,7 +266,7 @@ _FUNCTION_ {
} }
/* handle decimals */ /* handle decimals */
if (width!=0 && nch == '.') { if (width!=0 && nch == '.') {
float dec = 1; long double dec = 1;
nch = _GETC_(file); nch = _GETC_(file);
if (width>0) width--; if (width>0) width--;
while (width!=0 && (nch!=_EOF_) && _ISDIGIT_(nch)) { while (width!=0 && (nch!=_EOF_) && _ISDIGIT_(nch)) {