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

inconsistency in the definitions of round-off functions




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.