A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-March/043878.html below:

[Python-Dev] Expert floats

[Python-Dev] Expert floatsGreg Ewing greg at cosc.canterbury.ac.nz
Wed Mar 31 23:24:12 EST 2004
Andrew Koenig <ark-mlist at att.net>:

> Python gives me none of these, and instead gives me something else
> entirely that is almost never what I would like to see, given the
> choice.

Er, you do realise this only happens when the number
pops out in the interactive interpreter, or you use
repr(), don't you?

If you convert it with str(), or print it, you get
something much more like what you seem to want.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev 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