摘要: Math.ceil() 向上取整,即向 正无穷 取整 -3.4 -3 3.4 4 Math.floor() 向下取整,即向 负无穷 取整 -3.6 -4 3.6 3 Math.round() 四舍五入,即向 0 取整 -3.4 -3 3.6 4 取模 mod(x,y) = x - y*floor(x 阅读全文
posted @ 2017-12-19 11:04 弋儿 阅读(1507) 评论(0) 推荐(1) 编辑