小数取整

向上取整:Math.ceil(); 只要有小数就向上取整数

向下取整:Math.floor();有小数就向下取整数

取整数int类型:Math.round();

 

posted @ 2020-08-14 19:39  Pseudo-lover  阅读(293)  评论(0)    收藏  举报