How can I write a function in Python that rounds a number, in the usual fashion. Numbers less than .5 round down, and .5 and above rounds up.
3.4 -> 3 11.9 -> 12 5.5 -> 6
| 归档时间: |
|
| 查看次数: |
2462 次 |
| 最近记录: |