Why does python break IEEE 754 for 1.0/0.0 and 0.0/0.0?
"Martin v. Löwis"
martin at v.loewis.de
Thu Jul 14 17:47:37 EDT 2005
Grant Edwards wrote:
> 1/0 is defined by the standard as +Inf and 0/0 is NaN.
I wonder why Tim hasn't protested here: I thought this was *not*
the case. I thought IEEE 754 defined +Inf and NaN as only a possible
outcome of these operations with other possible outcomes being
exceptions... In that case, Python would comply to IEEE 754 in this
respect (although in a different way than the C implementation on
the same system).
Regards,
Martin
More information about the Python-list
mailing list