> a=6.4
> b=math.ceil(a)
> print(b)
7
> c=math.floor(a)
> print(c)
6

 

ceil向上取整

floor向下取整

相关文章:

  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-12-27
  • 2021-10-31
  • 2021-10-09
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案