Mail Archives: djgpp/1998/04/14/20:03:08
I think that a 'double' has more than 7 sig figures.
If you need many significant figures use a 'long double' which has around 41
sig fig.
you use:
printf("%.41Lf\n",a);
which shows 41 decimal places in Long Float mode to see them all, 7 i think
is the default setting.
Albert Bae wrote:
> Hello,
>
> I am making a program that needs high precision because it has to
> numerically integrate a function twice. I beleive that the double data
> type only gives 7 significant figures. 7 sig. figs. cause a round off
> error that is to large to be acceptable as an output for my program. I
> was wondering if there was a way of increasing the number of significant
> digits that DJGPP can handle. If I have made any mistakes in what I
> have said please feel free to correct me. I appreciate any help that
> you can give.
>
> Thanks,
> Albert
- Raw text -