[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: KLE at MIT-MC
- From: GLS at MIT-MC (Guy L. Steele, Jr.)
- Date: Tue, 18 Jul 78 23:28:00 GMT
- Cc: (BUG LISP) at MIT-MC
- Original-date: 18 JUL 1978 1928-EDT
Date: 18 JUL 1978 0909-EDT
From: KLE at MIT-MC (Edward Jay Kleban)
To: (BUG LISP) at MIT-MC
Foo! How come (* 15.0 3.4) evaluates to 51.0 and (* 3 3.4 5)
evaluates to 51.0000005 ?? I know
lisp is supposed to be a great language with neat huristics
and everything, but not even fortran's that bad at floating point.
You are a victim of floating-point round-off error.
I actually tried it on the local FORTRAN. It printed both
results as 50.9999995000.