Message80696
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:53 | LambertDW | set | recipients:
+ LambertDW, gvanrossum, loewis, rhettinger, mark.dickinson, orsenthil, giampaolo.rodola, ajaksu2, jyasskin, dingo |
2009-01-28 04:19:53 | LambertDW | set | messageid: <1233116393.77.0.557647144894.issue4707@psf.upfronthosting.co.za> |
2009-01-28 04:19:52 | LambertDW | link | issue4707 messages |
2009-01-28 04:19:51 | LambertDW | create | |
|