取整

"""
author:张鑫
date:2021/6/24 16:31
"""
# 上取整
from math import ceil

num1 = ceil(1.11)
print(num1)

num2 = ceil(90/20)
print(num2)
# 下取整
num3 = int(1.11)
print(num3)
posted @ 2021-10-20 15:59  布都御魂  阅读(48)  评论(0编辑  收藏  举报