A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/301001.html below:

round() wrong in Python 2.4?

round() wrong in Python 2.4? round() wrong in Python 2.4?Grant Edwards grante at visi.com
Wed Sep 14 10:42:11 EDT 2005
On 2005-09-14, Robert Kern <rkern at ucsd.edu> wrote:
> Antoon Pardon wrote:

>> 0.0225 isn't representable and it happens that the actual number
>> you get differ. Now which number python should choose when it is
>> fed 0.0225, I don't know. But expressing the different behaviour
>> as a change in round, suggest that the O.P. would be wise to
>> learn about floating point problems
>
> Uhh, Python didn't change anything between 2.3 and 2.4 wrt round().

That's what Antoon Pardon just said. The above paragraph says
that round() didn't change, and the fact that the OP thinks it
did indicates that the OP needs to learn more about FP.

-- 
Grant Edwards                   grante             Yow!  UH-OH!! We're out
                                  at               of AUTOMOBILE PARTS and
                               visi.com            RUBBER GOODS!

More information about the Python-list mailing list

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