[Python] 02 rounding

Round up: math.ceil() Round
down: math.floor(), Divide "//"
Round up: round()-odd numbers are rounded away from 0, even numbers are rounded to the end; or in other words: odd numbers Carry, even numbers to the end Round
to 0: int()

Guess you like

Origin blog.csdn.net/weixin_43012724/article/details/107781488