Number.prototype
Number.prototype
속성은 Number
생성자의 프로토타입을 나타냅니다.
Property attributes of Number.prototype |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
설명
속성
Number.prototype.constructor
- 이 객체의 인스턴스를 생성한 함수를 반환합니다. 기본적으로
Number
객체 입니다.
메서드
Number.prototype.toExponential()
- 숫자의 지수표기법 표현을 문자열로 반환합니다.
Number.prototype.toFixed()
- 숫자의 고정소수점 표현을 문자열로 반환합니다.
Number.prototype.toLocaleString()
(en-US)- 숫자의 표현을 특정 언어에 맞춘 형식의 문자열로 반환합니다.
Object.prototype.toLocaleString()
메서드를 오버라이드 합니다. Number.prototype.toPrecision()
- 지정한 정밀도로 숫자를 나타내는 문자열을 반환합니다. 고정소수점 혹은 지수표기법으로 표현합니다.
Number.prototype.toSource()
(en-US)- 지정한
Number
객체를 나타내는 객체 리터럴을 반환합니다. 이 값을 사용하여 새 객체를 만들 수 있습니다.Object.prototype.toSource()
(en-US) 메서드를 오버라이드 합니다. Number.prototype.toString()
- 지정된 기수(기본 10진수)로 지정된 객체를 문자열로 반환합니다.
Object.prototype.toString()
메서드를 오버라이드 합니다. Number.prototype.valueOf()
- 지정한 객체의 기본 자료형(primitive) 값을 반환합니다.
Object.prototype.valueOf()
메서드를 오버라이드 합니다.
명세
Specification | Status | Comment |
---|---|---|
ECMAScript 1st Edition (ECMA-262) | Standard | Initial definition. Implemented in JavaScript 1.1. |
ECMAScript 5.1 (ECMA-262) The definition of 'Number' in that specification. |
Standard | |
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'Number' in that specification. |
Standard | |
ECMAScript (ECMA-262) The definition of 'Number' in that specification. |
Living Standard |
브라우저 호환성
No compatibility data found for javascript.builtins.Number.prototype
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.