Decimal arithmetic, was Re: Python GUI app to impress the boss?
Dennis Lee Bieber
wlfraed at ix.netcom.com
Wed Oct 2 01:05:32 EDT 2002
Chris Gonnerman fed this fish to the penguins on Tuesday 01 October
2002 08:11 pm:
> My only complaint is that the fixedpoint.py module does
> only banker's rounding. Bah. I do have bank customers,
> but they don't let me handle their math (it's done in
> true, old-fashioned BCD as far as I can tell). Most of
> my business customers do the >= 0.5 up, < 0.5 down form
> they learned in school... so what I need is a math library
> that does it that way without losing or gaining
> "unexpected" pennies along the way.
>
Okay, and which way should it do -0.5? Is that rounded to 0.0 or -1.0?
--
> ============================================================== <
> wlfraed at ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wulfraed at dm.net | Bestiaria Support Staff <
> ============================================================== <
> Bestiaria Home Page: http://www.beastie.dm.net/ <
> Home Page: http://www.dm.net/~wulfraed/ <
More information about the Python-list
mailing list