Major Addition Bug?

From: Mohammad Khan []
Subject: Re: Major Addition Bug?

I guess, you guys are missing the point,

in real life you can’t have exact answer of 1/3 + 2.3 + 1.3
but you can have exact answer of 625.91 + 900.00 + 22.00

The point has not been missed at all. This is something that cannot be
dealt with on computers using floating point. I would imagine that 1/3
could be represented exactly in a base-3 counting system, rather than a
decimal (base-10) counting system.

If you need precision with decimal values, don’t use floats.



austin ziegler *