Decimal arithmatic, was Re: Python GUI app to impress the boss?
James J. Besemer
jb at cascade-sys.com
Mon Sep 30 13:54:22 EDT 2002
Steve Holden wrote:
><sismex01 at hebmex.com> wrote...
>
>
>[ ... ]
>OK, so don't use whole pennies (or smallest currency) as your
>base, use 10,000ths of a penny, but still use integer arithmetic
>for your calculations.
>
Normal Integers aren't big enough. 2^31 / 10K == 215K.
--jb
--
James J. Besemer 503-280-0838 voice
2727 NE Skidmore St. 503-280-0375 fax
Portland, Oregon 97211-6557 mailto:jb at cascade-sys.com
http://cascade-sys.com
More information about the Python-list
mailing list