Re: decimal.Decimal formatting

2010-07-19 Thread Stefan Krah
pyt...@lists.fastmail.net wrote: > I have various decimals which eventually are written to an XML file. > Requirements indicate a precision of 11. I am currently having some > 'issues' with Decimal("0"). When using > quantize(decimal.Decimal("1e-11")) the result is not 0.000, but > 1e-11.

decimal.Decimal formatting

2010-07-19 Thread python
I have various decimals which eventually are written to an XML file. Requirements indicate a precision of 11. I am currently having some 'issues' with Decimal("0"). When using quantize(decimal.Decimal("1e-11")) the result is not 0.000, but 1e-11. Personally I agree 1e-11 is a better notati