diff --git a/spec.html b/spec.html index 55bcc4ae4a5..96acf7b2988 100644 --- a/spec.html +++ b/spec.html @@ -4277,7 +4277,7 @@
ToNumber applied to Strings applies the following grammar to the input String interpreted as a sequence of UTF-16 encoded code points (
The abstract operation StringToNumber specifies how to convert a String value to a Number value. Overall, the process is similar to the determination of the NumericValue of a numeric literal (see
The conversion of a String to a Number value is similar overall to the determination of the Number value for a numeric literal (see
Once the exact MV for a String numeric literal has been determined, it is then rounded to a value of the Number type. If the MV is 0, then the rounded value is *+0*𝔽 unless the first non white space code point in the String numeric literal is `-`, in which case the rounded value is *-0*𝔽. Otherwise, the rounded value must be the Number value for the MV (in the sense defined in
For the MV of any production not shown above, see
The abstract operation StringToNumber takes argument _str_ (a String) and returns a Number. It performs the following steps when called:
+A digit is significant if it is not part of an |ExponentPart| and
A numeric literal stands for a value of the Number type or the BigInt type.
+A numeric literal stands for a value of the Number type or the BigInt type, as specified by the syntax-directed operation NumericValue. Determining this value involves deriving a mathematical value (MV) from the literal, according to the following rules.
Once the exact MV for a numeric literal has been determined, it is then rounded to a value of the Number type. If the MV is 0, then the rounded value is *+0*𝔽; otherwise, the rounded value must be the Number value for the MV (as specified in
A digit is significant if it is not part of an |ExponentPart| and