Round with integer division

前端 未结 6 695
情书的邮戳
情书的邮戳 2021-01-07 17:47

Is there is a simple, pythonic way of rounding to the nearest whole number without using floating point? I\'d like to do the following but with integer arithmetic:

6条回答
提交回复
热议问题