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/2003-July/037229.html below:

[Spambayes] Question (orpossibly a bug report)

[Python-Dev] Re: [spambayes-dev] RE: RE: [Spambayes] Question (orpossibly a bug report) [Python-Dev] Re: [spambayes-dev] RE: RE: [Spambayes] Question (orpossibly a bug report)Skip Montanaro skip@pobox.com
Fri, 25 Jul 2003 10:18:35 -0500
    Scott> I've been seeing a lot of "we'll have to use float(123)/100"
    Scott> messages floating around, and I'd like to point out there is an
    Scott> atof-able form for floating point numbers:
    Scott>            256.7654e-7  =  2567654e-11

This isn't a general solution because when that floating point number is
marshalled for storage in the .pyc file it will be normalized and contain a
decimal point:

    >>> f = 2567654e-11
    >>> f
    2.567654e-05
    >>> import marshal
    >>> marshal.dumps(f)
    'f\x0c2.567654e-05'

Skip



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