Division considered un-Pythonic (Re: Case-sensitivity: why -- or why not? (was Re: Damnation!))

Rainer Deyke root at rainerdeyke.com
Fri Jun 2 12:53:30 EDT 2000


<piet at cs.uu.nl> wrote in message news:u1z2gl8zu.fsf at cs.uu.nl...
> I want to add another reason for a/b to mean floating division:
>
> As it is now in Python, you can have a==b and c==d both being true, but
> a/c==b/d being false. Which would be a bad surprise for most people.

But, with floating point numbers, you can have (a + b) - b == a be false.
The only way to avoid this sort of situation is to avoid floating points
entirely.  I don't want my programs to become infested with floats just
because of one innocent division.


--
Rainer Deyke (root at rainerdeyke.com)
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list