[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inconsistency in the definitions of round-off functions
- To: common-lisp@su-ai
- Subject: inconsistency in the definitions of round-off functions
- From: wilensky@ucblarch (Robert Wilensky)
- Date: Tue, 3 Sep 85 16:25:13 pdt
- Cc: hilfingr%ernie@Berkeley, fateman%dali@Berkeley, wilensky%dali@Berkeley, jkf%mike@Berkeley
The definition of the functions ``floor'', etc. is inconsistent. In one
paragraph (p. 216) it is stated that ``(floor 5 2) is equivalent to (floor
(/ 5 2))''. However, according to the very next paragraph, this is not true
of the second value returned. This is because, ``If any of these functions
is given the two arguments x and y and produces results q and r, then q . y
+ r = x''. Thus, ``(floor 5 2)'' returns 2 and 1, while ``(floor (/ 5 2))''
returns 2 and 1/2. This is fact appears to be true of VAXLISP.