[Python-Dev] Decimal data type issues (original) (raw)

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, significantdigits=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, significantdigits=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