Intl.NumberFormat.prototype
속성은 Intl.NumberFormat
생성자의 프로토타입을 나타냅니다.
Property attributes of Intl.NumberFormat.prototype |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
설명
Intl.NumberFormat
인스턴스에 대한 설명은 NumberFormat
문서를 참고하세요.
Intl.NumberFormat
인스턴스는 Intl.NumberFormat.prototype
을 상속합니다. 프로토타입 객체를 변형하면 모든 Intl.NumberFormat
인스턴스가 영향을 받습니다.
속성
Intl.NumberFormat.prototype.constructor
Intl.NumberFormat
에 대한 참조입니다.
메서드
Intl.NumberFormat.prototype.format()
- 주어진 숫자에
NumberFormat
객체의 로케일과 서식 설정을 적용해 반환합니다.
Intl.NumberFormat.prototype.formatToParts()
- 서식을 적용한 숫자의 각 부분을 객체로 표현해서
Array
로 반환합니다. 반환 값은 로케일별 커스텀 서식에 사용할 수 있습니다. Intl.NumberFormat.prototype.resolvedOptions()
- 객체 인스턴스 생성 때 주어진 로케일과 콜레이션 설정이 어떻게 반영되었나 나타내는 새로운 객체를 반환합니다.