approxEqual() has fooled me for a long time...

Walter Bright newshound2 at digitalmars.com
Wed Oct 20 11:49:23 PDT 2010


Lars T. Kyllingstad wrote:
> However, I, like most people, am a lot more used to thinking in terms of 
> digits than bits.  If I need my results to be correct to within 10 
> significant digits, say, how (if possible) would I use feqrel() to ensure 
> that?

(# of bits) = (# of decimal digits) * log2(10)


More information about the Digitalmars-d mailing list