Numerics, NaNs, IEEE 754 and C99

Christophe chris.cavalaria at free.fr
Thu Jun 15 04:55:53 EDT 2006


Nick Maclaren a écrit :
> Now, can you explain why 1/0 => -Inf wouldn't work as well?  I.e. why
> are ALL of your zeroes, INCLUDING those that arise from subtractions,
> are known to be positive?

I would say that the most common reason people assume 1/0 = Inf is 
probably because they do not make use of negative numbers or they forgot 
they exist at all.



More information about the Python-list mailing list