linuxism 2018. 5. 27. 07:57


Math.abs(x) : 절대값

Math.ceil(x) : 올림

Math.floor(x) : 버림

Math.round(x) : 반올림


source - https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Math