[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
not a complaint, but...
- To: SLUG@ai.sri.com
- Subject: not a complaint, but...
- From: WJL@zermatt.lcs.mit.edu (Bill Long)
- Date: Sat, 8 Feb 1992 10:25:00 -0500
- Character-type-mappings: (1 0 (NIL 0) (NIL :ITALIC NIL) "CPTFONTI")
- Fonts: CPTFONT, CPTFONTI
I should have known better, but it's always good to know that round-off
is always there to bite you when you least expect it. I just discovered
that the sum of a list is not necessarily the same as the sum of the
same list reversed.
(+ 10.020 10.020 10.0150 10.0150 10.0080)
0.078
(+ 10.0080 10.0150 10.0150 10.020 10.020)
0.077999994
(= * **)
NIL
sigh..
-Bill Long