Math.floor
-
[Javascript] Math.floor 와 parseInt 차이점프로그래밍/JavaScript 2023. 4. 24. 15:44
▶Javascript Math.floor 와 parseInt 차이점 ▶설명 Javascript 함수 중에 Math.floor와 parseInt 2가지 모두 역할이 비슷해서 헷깔립니다. 2개의 함수의 차이점을 알아보도록 하겠습니다. ▶설명 Math.floor 참고 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor Math.floor() - JavaScript | MDN The Math.floor() static method always rounds down and returns the largest integer less than or equal to a given number. devel..