Math.round

SJW·2023년 2월 11일

Math.round(i)

  • 실수의 소수점 첫째자리에서 반올림하여 정수로 반환해주는 메서드이다.
  • ex)
    Math.round(10.4) --> 10

0개의 댓글