-
Javascript의 수 타입들프로그래밍/의문 2021. 12. 17. 02:03반응형
자바스크립트의 빌트인 수 타입에는 Number와 BigInt가 있다.
Number는 IEEE754-2019 64비트 부동소수점 타입이다.
ECMAScript® 2022 Language Specification (tc39.es)
ECMAScript® 2022 Language Specification
The first and subsequent editions of ECMAScript have provided, for certain operators, implicit numeric conversions that could lose precision or truncate. These legacy implicit conversions are maintained for backward compatibility, but not provided for BigI
tc39.es
BigInt는 정수를 나타내며 임의의 크기로 32, 64 비트 같은 특정 너비로 제한되지 않는다.
특별한 명시가 없는 경우, 무한히 설정된 비트가 있는 것으로 처리된다.ECMAScript® 2022 Language Specification (tc39.es)
ECMAScript® 2022 Language Specification
The first and subsequent editions of ECMAScript have provided, for certain operators, implicit numeric conversions that could lose precision or truncate. These legacy implicit conversions are maintained for backward compatibility, but not provided for BigI
tc39.es
반응형'프로그래밍 > 의문' 카테고리의 다른 글
C# 에서의 의존성 주입 (0) 2022.01.22 ASP.NET Core 로 개발 중 중단점이 안 잡히던 이슈(no symbols have been loaded) (0) 2021.12.27 CIDR (0) 2021.12.12 메세지 큐 전달 보증 비교 (0) 2021.12.09 텅 빈 클래스 또는 구조체는 왜 0 사이즈가 아닐까? (0) 2021.10.23