>  Q&A  >  본문

Math.round()跟Math.ceil()有人解释一下跟这个四舍五入有什么不同吗?

Math.round()跟Math.ceil()有人解释一下跟这个四舍五入有什么不同吗

学习ing学习ing2864일 전1184

모든 응답(1)나는 대답할 것이다

  • 阿神

    阿神2016-12-17 17:18:34

    Math.round()就是我们学的四舍五入,Math.ceil()就是向上取整,例如1.2, 1.3, 1.6取下来都是2

    회신하다
    0
  • 취소회신하다