How do you increase floating point precision beyond the default of 6?
example:
double var = exp(-1.987654321123456789);
writeln(var);
--> 0.137016
Assuming this result is only an output format issue and that operations are
still using double's 64 places, if var above is passed to a
On 01/11/2012 03:51 PM, dsmith wrote:
How do you increase floating point precision beyond the default of 6?
example:
double var = exp(-1.987654321123456789);
writeln(var);
--> 0.137016
Assuming this result is only an output format issue and that operations are
still using double's 6
All is passed, to print, say, 50 signs after period use following:
writefln("%.50f", var);
2012/1/12 dsmith :
> How do you increase floating point precision beyond the default of 6?
> example:
>
> double var = exp(-1.987654321123456789);
> writeln(var);
>
> -->