Alternative to Decimal type

Aahz aahz at pythoncraft.com
Wed Jun 11 16:39:25 EDT 2008


In article <f7cc4f0f-3e37-43e7-927a-0ed14a063930 at 25g2000hsx.googlegroups.com>,
Frank Millman  <frank at chagford.com> wrote:
>
>My approach is based on expressing a decimal number as a combination
>of an integer and a scale, where scale means the number of digits to
>the right of the decimal point.

You should probably use one written by an expert:

http://www.pythoncraft.com/FixedPoint.py
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha



More information about the Python-list mailing list