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:44:38 EDT 2005


Grant Edwards wrote:
> I often foget how old Python is.  Still, I've been using IEEE
> floating point in C programs (and depending on the proper
> production and handling of infinities and NaNs) for more than
> 20 years now.  I had thought that Python might have caught up.

As should be clear by now, it hasn't. What made you think it would
have?

As Tim says, there are very strong reasons why Python *doesn't*
support IEEE 754, the primary one being lack of contributors that
improve it. I, for example, care much more about integer arithmetic
than floating point.

Regards,
Martin



More information about the Python-list mailing list