[SciPy-dev] 1/0
aurelian
a.u.r.e.l.i.a.n at gmx.net
Wed Mar 29 11:17:39 EST 2006
Perry Greenfield schrieb:
> IEEE special values only apply to floating types, not integers. If you
> think about it a bit, you'll understand why (what bit pattern isn't a
> valid integer?). And you probably mean IEEE 754, not 854.
Point taken, but I would find it better if a ZeroDivision Error was
raised. (If you try 1/0 with Python's native integers, this happens.)
1/0 giving back 0 silently is a Bad Thing imho.
Johannes
More information about the SciPy-Dev
mailing list