[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
    >>> import marshal
    >>> marshal.dumps(f)