This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author LambertDW
Recipients LambertDW, ajaksu2, dingo, giampaolo.rodola, gvanrossum, jyasskin, loewis, mark.dickinson, orsenthil, rhettinger
Date 2009-01-28.04:19:51
SpamBayes Score 3.85168e-05
Marked as misclassified No
Message-id <>
The value of one of the arguments controls how many digits there are.

Certainly if you rounded $10 to the nearest cents you'd expect $10.00.
Thus round(10,2) should be 10.00.  Without using decimal module, the 
best we can do is produce  10.0.

I'd apply a similar argument to convince you that the return value 
should be integral for negative "number of digits".

Hark!  This is python.  We can take this correct and beautiful approach.  
We are not constrainded by function signatures of c++ or FORTRAN90.
Date User Action Args
2009-01-28 04:19:53LambertDWsetrecipients: + LambertDW, gvanrossum, loewis, rhettinger, mark.dickinson, orsenthil, giampaolo.rodola, ajaksu2, jyasskin, dingo
2009-01-28 04:19:53LambertDWsetmessageid: <>
2009-01-28 04:19:52LambertDWlinkissue4707 messages
2009-01-28 04:19:51LambertDWcreate