Floating numbers
Aahz
aahz at pythoncraft.com
Fri Aug 13 17:34:57 EDT 2010
In article <595969e7-354f-456d-82b5-6aeafbabe419 at d8g2000yqf.googlegroups.com>,
Mark Dickinson <dickinsm at gmail.com> wrote:
>
> - If you *really* need a number that represents the *exact* value
>34.52, then use the decimal module, or perhaps consider using a simple
>home-brewed fixed-point representation.
Don't use a home-brew fixed-point, rely on Uncle Tim!
http://pythoncraft.com/FixedPoint.py
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box." --Cliff Wells
More information about the Python-list
mailing list