[Python-Dev] Decimal data type issues

Ka-Ping Yee python-dev at zesty.ca
Fri Apr 16 05:34:59 EDT 2004

On Fri, 16 Apr 2004, Moore, Paul wrote:
> From: Ka-Ping Yee
> > Here is my point, again: Decimal(1.1, significant_digits=4) is unambiguous.
> >
> > Converting from float is not confusing when the precision is specified
> > (either in terms of significant digits or decimal places).
> Decimal(1.1, significant_digits=34) is unambiguous, but confusing.

It is no more confusing than '%.33f' % 1.1, which gives you exactly
the same thing.

-- ?!ng

More information about the Python-Dev mailing list