摘要: 方法一:向上取整Math.ceil();举例:Math.ceil(11.4)=12; Math.ceil(-11.6)=-11; 方法二:向下取整Math.floor();举例:Math.floor(11.7)=11;Math.floor(-11.2)=-12; 方法三:四舍五入Math.round 阅读全文
posted @ 2021-04-17 12:40 风肖肖(肖遥) 阅读(771) 评论(0) 推荐(0) 编辑