A number value is a member of the type
Number
and is a direct representation of a number.
The type
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.
A
Number
object is a member of the typeObject
and is an instance of the built-inNumber
object. That is, aNumber
object is created by using theNumber
constructor in anew
expression, supplying a number as an argument. The resulting object has an implicit (unnamed) property that is the number. ANumber
object can be coerced to a number value by calling theNumber
constructor as a function (15.7.1).
[6] Write structured clone algorithm in terms of ECMAScript · whatwg/html@bfb960c ( 版) <https://github.com/whatwg/html/commit/bfb960c938580c95e77365e614218b952f96375b>
[7] Breaking: refactor structured clone into serialize/deserialize (domenic著, ) <https://github.com/whatwg/html/commit/97d644c97335956610a31e8ad98d1a388c063e84>
[4] Editorial: improve language used around real numeric values. (#388) (tobie著, ) <https://github.com/heycam/webidl/commit/79cfa440c3e1e77349640667efdda4feaea637c2>
[8] 22888 – 4.2.{14,15}: "has the same numeric value" () <https://www.w3.org/Bugs/Public/show_bug.cgi?id=22888>
[9] Editorial: improve language used around real numeric values. by tobie · Pull Request #388 · heycam/webidl () <https://github.com/heycam/webidl/pull/388>