[Python-Dev] Decimal data type issues (original) (raw)
Ka-Ping Yee python-dev at zesty.ca
Fri Apr 16 05:34:59 EDT 2004
- Previous message: [Python-Dev] Decimal data type issues
- Next message: [Python-Dev] Decimal data type issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Decimal data type issues
- Next message: [Python-Dev] Decimal data type issues
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]