Decimal arithmetic, was Re: Python GUI app to impress the boss?

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Wed Oct 2 08:16:47 EDT 2002


----- Original Message ----- 
From: "John Roth" <johnroth at ameritech.net>

> That's because there isn't one. I used to work for an 
> insurance company that did one-off contracts for group 
> insurance. Each one had specialty rounding, specified 
> by the actuaries to make the contract come out right. 
> In the face of that kind of illogic, you can't even 
> depend on there being three rounding policies: truncate,
> round at .5 and roll up any fraction. I've seen specs 
> that require rounding up at .70, for example.

I remember writing code to round up at 0.40, but I can't 
remember who it was for...

Chris Gonnerman -- chris.gonnerman at newcenturycomputers.net
http://newcenturycomputers.net





More information about the Python-list mailing list