Numerics, NaNs, IEEE 754 and C99

Christophe chris.cavalaria at free.fr
Wed Jun 14 12:01:34 EDT 2006


Grant Edwards a écrit :
> The division by zero trap is really annoying.  In my world the
> right thing to do is to return Inf.

Your world is flawed then, this is a big mistake. NaN is the only 
aceptable return value for a division by zero.



More information about the Python-list mailing list