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 | scoder |
|---|---|
| Recipients | eric.smith, ezio.melotti, mark.dickinson, martin.panter, rhettinger, scoder, serhiy.storchaka, skrah, tuomas.suutari, wolma |
| Date | 2015年03月29日.17:31:20 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1427650280.56.0.878167984802.issue23602@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Meaning, something like this should work:
x = (nom * 10**(prec+1)) // den
if x % 10 < 5:
x = x // 10
else:
x = x // 10 + 1
print('%s.%s' % (x[:-prec], x[-prec:])) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015年03月29日 17:31:20 | scoder | set | recipients: + scoder, rhettinger, mark.dickinson, eric.smith, ezio.melotti, skrah, martin.panter, serhiy.storchaka, wolma, tuomas.suutari |
| 2015年03月29日 17:31:20 | scoder | set | messageid: <1427650280.56.0.878167984802.issue23602@psf.upfronthosting.co.za> |
| 2015年03月29日 17:31:20 | scoder | link | issue23602 messages |
| 2015年03月29日 17:31:20 | scoder | create | |