数学对象round()方法,ceil()方法,和floor()方法有什么区别

来源:互联网 发布:域名系统dns的功能是 编辑:程序博客网 时间:2024/06/14 03:02
round(3.45) >>>>>3.5      4舍5入  
ceil(3.45)>>>>>>4 最接近的较大整数(ceiling天花板的意思)
floor(3.45)>>>>>>3 最接近的较小整数(floor地板的意思)
原创粉丝点击