Re: [Tutor] Precision with Decimal

2009-02-01 Thread Kent Johnson
On Sat, Jan 31, 2009 at 10:05 PM, wrote: > I am using the decimal module to work with money (US dollars and cents) and > do not understand the precision. The documentation states: > > "The decimal module incorporates a notion of significant places so that 1.30 > + 1.20 is 2.50. The trailing zero

Re: [Tutor] Precision with Decimal

2009-02-01 Thread Sander Sweers
On Sun, Feb 1, 2009 at 04:05, wrote: > "The decimal module incorporates a notion of significant places so that 1.30 > + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is > the customary presentation for monetary applications." > > But I get: from decimal import Decima

[Tutor] Precision with Decimal

2009-02-01 Thread gslindstrom
I am using the decimal module to work with money (US dollars and cents) and do not understand the precision. The documentation states: "The decimal module incorporates a notion of significant places so that 1.30 + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is the