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 shlomoa
Recipients amaury.forgeotdarc, shlomoa
Date 2007-12-07.10:04:55
SpamBayes Score 0.52554166
Marked as misclassified No
Message-id <1197021895.48.0.399308099912.issue1565@psf.upfronthosting.co.za>
In-reply-to
Content
>>> def my_round(n,i):
...     t = n * (10**i)
...     s = round(t)
...     r = s / (10**i)
...     return r
... 
>>> print my_round(s,2)
1.41
History
Date User Action Args
2007-12-07 10:04:55shlomoasetspambayes_score: 0.525542 -> 0.52554166
recipients: + shlomoa, amaury.forgeotdarc
2007-12-07 10:04:55shlomoasetspambayes_score: 0.525542 -> 0.525542
messageid: <1197021895.48.0.399308099912.issue1565@psf.upfronthosting.co.za>
2007-12-07 10:04:55shlomoalinkissue1565 messages
2007-12-07 10:04:55shlomoacreate