[G4] 2+2=4.0000001?

Amir 'CG' Caspi cepheid at ssl.berkeley.edu
Thu Feb 26 19:20:32 PST 2004


On Thu, 26 Feb 2004, CJ Scaminaci wrote:

> calculations.  Floating point calculations aren't known (at least from a
> programming point of view) for being accurate in all cases ;).

True, but they ARE accurate when you add base-2 numbers, which are
perfectly representable.  2+2=4 should work accurately on all binary
systems, even in floating-point.

						--- Amir



More information about the G4 mailing list