[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comparisons between floats and ratios
- To: Fahlman@C.CS.CMU.EDU, GZ%OZ.AI.MIT.EDU@XX.LCS.MIT.EDU
- Subject: comparisons between floats and ratios
- From: Robert A. Cassels <Cassels@TENEX.SCRC.Symbolics.COM>
- Date: Tue, 28 Jan 86 15:09 EST
- Cc: common-lisp@SU-AI.ARPA
- In-reply-to: <FAHLMAN.12178595334.BABYL@C.CS.CMU.EDU>
- Reply-to: Robert A. Cassels <Cassels@SCRC-STONY-BROOK.ARPA>
Date: Mon, 27 Jan 1986 10:42 EST
From: "Scott E. Fahlman" <Fahlman@C.CS.CMU.EDU>
A not-entirely-unrelated question: What kind of rounding is FLOAT supposed
to do?
I think that the GOAL is to produce the closest approximation to the
ratio that is possible in a given floating-point format. That's what
implementors should shoot for. Whether it makes sense to REQUIRE this
in the very last bit is less clear. I don't think I've ever seen a
floating-point package that got this right all the time.
You haven't looked at your 36xx lately, then.
-- Scott