A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/012299.html below:

[Python-Dev] Function Hash: Check it in?

[Python-Dev] Function Hash: Check it in? [Python-Dev] Function Hash: Check it in?Paul Hughett hughett@mercur.uphs.upenn.edu
Mon, 29 Jan 2001 17:05:22 -0500
tim says:

> Cray's was the only box on earth that set I to 1 in

>    INTEGER I
>    I = 6.0/3.0

> Fortran doesn't define that the result must be 2.  But-- you guessed
> it --neither does Python.

I would _guess_ that the IEEE 754 floating point standard does require
that, but I haven't actually gotten my hands on a copy of the standard
yet.  If it doesn't, I may have to stop writing code that depends on
the assumption that floating point computation is exact for exactly
representable integers.  If so, then we're reasonably safe; there
aren't many non-IEEE machines left these days.

Un-lurking-ly yours,

Paul Hughett



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4