서 자주 사용하게 될 수학 함수를 담고 있습니다(전문적인 숫자 분석이 필요하다면 별도의 라
이브러리를 찾아야 할 겁니다).
본격적으로 시작하기 전에 자바스크립트가 숫자를 어떻게 처리하는지 다시 한번 짚고 넘어
갑시다. 우선, 자바스크립트에는 정수 전용 클래스가 없습니다. 자바스크립트의 숫자는 모두
IEEE
754
64
비트 부동소수점 숫자입니다. 대개는 이것으로 충분합니다. 숫자는 숫자일 뿐이
니까요. 컴퓨터가 임의의 실수를 전부 나타내는 건 불가능한 일이지만, 일반적으로는 자바스크
립트의 숫자면 충분하다고 할 수 있습니다. 자바스크립트는 복잡한 숫자나 아주 큰 숫자를 지
원하지 못합니다. 복잡한 숫자나 아주 큰 숫자를 다뤄야 한다거나, 전문적인 수식 구조나 알고
리즘이 필요하다면
Math
.
js
(
http
://
mathjs
.
org
/
)를 권합니다.
이 장은 수학에 관한 장은 아닙니다. 수학은 그 자체로 하나의 학문이니 이 책에서 다룰 수는
없습니다.
이 장의 코드 주석에는
~
기호가 많이 보일 겁니다. 이 접두사는 그 값이 근삿값이라는 의미입
니다.
Math
객체의 프로퍼티를
메서드
라 부르지 않고
함수
라 부를 겁니다. 엄밀히 말해 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.