摘要: 1.Math.round(11.5) 等于多少?Math.round(-11.5) 等于多少? Math.round(11.5)的返回值是 12,Math.round(-11.5)的返回值是-11。四舍 五入的原理是在参数上加0.5,然后进行下取整。 2.loat f=3.4;是否正确 ? 不正确。 阅读全文
posted @ 2021-12-20 11:39 一个Java菜鸡 阅读(46) 评论(0) 推荐(0) 编辑