[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Floating-point round-off problems.



    Date: Thu, 10 Aug 89 08:00 PDT
    From: Spock@SAMSON.CADR.DIALNET.SYMBOLICS.COM (Mr. Spock)

    Does anyone have a hack to correct for the losing floating-point math on
    these Symbolics machines?

    Consider:

	(- 6 5.9) returns -> 0.099999905 instead of 0.1

This is the correct answer, given that the representation of floating
point numbers inherently cannot represent things with infinite precision.
Granted, there are surely bugs in the Symbolics implementation of
floating point arithmetic, but this is not one of them.