올림 : ceil = v. 천장에 대다
let positiveNum_ceil = Math.ceil(3.6)
console.log(’positiveNum_ceil’, positiveNum_ceil)
let negativeNum_ceil = Math.ceil(-3.6)
console.log(’negativeNum_ceil’, negativeNum_ceil)
내림 : floor = v. 바닦에 깔다
let positiveNum_floor = Math.floor(3.6)
console.log(’positiveNum_floor’, positiveNum_floor)
let negativeNum_floor = Math.floor(-3.6)
console.log(’negativeNum_floor’, negativeNum_floor)
반올림 : round = v. 반올림하다
let positiveNum_round = Math.round(3.6)
console.log(’positiveNum_round’, positiveNum_round)
let negativeNum_round = Math.round(-3.6)
console.log(’negativeNum_round’, negativeNum_round)