玉滨的博客

导航

Math.floor(-8.5)=多少?

 

Math.floor()   表示向下取整,返回double类型   (floor---地板) 
Math.ceil()   表示向上取整,返回double类型    (ceil---天花板) 
Math.round()  四舍五入,返回int类型

posted on 2018-09-29 09:18  玉滨的博客  阅读(2625)  评论(0编辑  收藏  举报