in reply to Re: strange result for a simple addition ??
in thread strange result for a simple addition ??

Actually 0.1 decimal can't be represented as a finite binary fraction so suffers from rounding errors and the accumulation of rounding errors that OP is seeing.


DWIM is Perl's answer to Gödel
  • Comment on Re^2: strange result for a simple addition ??

Replies are listed 'Best First'.
Re^3: strange result for a simple addition ??
by roboticus (Chancellor) on Aug 26, 2006 at 04:21 UTC
    Right...that's the situation I was giving an example of.

    --roboticus