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-September/017637.html below:

[Python-Dev] Canned Responses

[Python-Dev] Canned Responses [Python-Dev] Canned ResponsesTim Peters tim.one@home.com
Fri, 28 Sep 2001 15:06:25 -0400
> Float precision
> 	This is not a bug.
> 
> 	Binary floating point cannot represent decimal fractions exactly,
> 	so some rounding always occurs (even in Python 1.5.2).
> 
> 	What changed is that Python 2.0 shows more precision than before
> 	in certain circumstances (repr() and the interactive prompt). 
> 
> 	You can use str() or print to get the old, rounded output: 
> 
> 	>>> print 0.1+0.1
> 	0.2
> 	>>>
> 
> 	Follow the link for a detailed example:
> 
> 	http://www.python.org/cgi-bin/moinmoin/RepresentationError

Note that I've since changed the last two lines:

    Follow the link for more information:

    http://python.sourceforge.net/devel-docs/tut/node14.html




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