[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange division using mixed integers and floats
From: |
peta |
Subject: |
Re: Strange division using mixed integers and floats |
Date: |
Thu, 29 Apr 2004 13:17:40 -0400 |
> Also (/ 5 4 2.3) would no longer be equivalent to (/ (/ 5 4) 2.3).
>
> I don't think that is a big loss.
In ansii common lisp they are equivalent, but that is because integer
division gives a rational result. So in the absence of rational numbers
converting all arguments to float would be a close approximation of the
same.
--
Peter Whaite (http://whaite.ca)