Math.round() - 반올림

송한솔·2023년 5월 8일
0

숫자를 반올림해주는 메서드

var num = 3.283434;
var roundNum = Math.round(num); // 3

0개의 댓글