-
Notifications
You must be signed in to change notification settings - Fork 4
/
554.txt
22 lines (17 loc) · 1.53 KB
/
554.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[1]
> A [DFN@en[number value]] is a [[member]] of the [[type]] [CODE(JS)@en[[[Number]]]]
and is a direct representation of a [[number]].
;; [CITE[ECMAScript Language Specification (HTML version)]] ([TIME[2009-04-03 04:43:48 +09:00]] 版) <http://bclary.com/2004/11/07/#a-4.3.19>
[2]
> The [[type]] [DFN[[CODE(JS)@en[[[Number]]]]]] is a [[set]] of [[values]] representing [[numbers]].
In [[ECMAScript]], the [[set]] of [[values]] represents the [[double-precision 64-bit format IEEE 754 values]]
including the special “[[Not-a-Number]]” ([[NaN]]) [[values]], [[positive infinity]], and [[negative infinity]].
;;[CITE[ECMAScript Language Specification (HTML version)]] ([TIME[2009-04-03 04:43:48 +09:00]] 版) <http://bclary.com/2004/11/07/#a-4.3.20>
[3]
> A [DFN[[CODE(JS)@en[Number]] object]] is a [[member]] of the [[type]] [CODE(JS)@en[[[Object]]]] and is an [[instance]]
of the [[built-in]] [CODE(JS)@en[[[Number]]]] [[object]]. That is, a [[[CODE(JS)@en[Number]] object]] is created by using
the [CODE(JS)@en[[[Number]]]] [[constructor]] in a [CODE(JS)@en[[[new]]]] [[expression]], supplying a [[number]] as an
[[argument]]. The resulting [[object]] has an implicit (unnamed) [[property]] that is the [[number]].
A [[[CODE(JS)@en[Number]] object]] can be coerced to a [[number]] [[value]] by calling the
[CODE(JS)@en[[[Number]]]] [[constructor]] as a [[function]] (15.7.1).
;;[CITE[ECMAScript Language Specification (HTML version)]] ([TIME[2009-04-03 04:43:48 +09:00]] 版) <http://bclary.com/2004/11/07/#a-4.3.21>