double trouble

Lionello Lunesu lio at remove.lunesu.com
Wed Mar 1 04:04:39 PST 2006


I would get rid of the while, or at least the /= and *= therein, these will 
only add to the inaccuracy. Better keep track of integers (++n, --n) and use 
pow when you need the 10^n or so. Remember that the 10.0 is already 
inaccurate (imagine it's 9.999 or so), using it multiple times will 
definately add to the inaccuracy.

L. 





More information about the Digitalmars-d mailing list