In article <··············@netcom.com> ····@Yost.COM (Dave Yost) writes:
Could someone explain why lisp rounds the way it does?
"if number is exactly halfway between two integers
(that is, of the form integer + 0.5) then it is
rounded toward the one that is even (divisible by 2)."
- Steele (CLtL2)
I've never heard of this practice, before or since computers.
Really? This is how i was taught to round numbers in grade school.
I suppose it is useful for something, but why isn't the usual
type of rounding also available in the language?
So how do you do it? On integer + 0.5 cases, do you round up, down,
away from zero, or what?
--
rodrigo vanegas
··@cs.brown.edu