Skip to content

Commit 7bee1d9

Browse files
authored
Editorial: Minor tweaks (#6)
1 parent cbb421b commit 7bee1d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec.emu

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ contributors: Eemeli Aro
7777
</h1>
7878
<dl class="header">
7979
<dt>description</dt>
80-
<dd>It creates the parts representing the mathematical value of <del>_x_</del><ins>_intlMV_</ins> according to the effective locale and the formatting options of _numberFormat_.</dd>
80+
<dd>It creates the parts representing the mathematical value of _x_ according to the effective locale and the formatting options of _numberFormat_.</dd>
8181
</dl>
8282

8383
<emu-alg>
@@ -401,7 +401,7 @@ contributors: Eemeli Aro
401401
<ins class="block">
402402
<p>
403403
The conversion of a |StringNumericLiteral| to a mathematical value and a precision is similar overall to the determination of the NumericValue of a |NumericLiteral| (see <emu-xref href="#sec-literals-numeric-literals"></emu-xref>), but some of the details are different.
404-
The result of StringIntlMV is a List value with two elements, a mathematical value and the number of decimal digits in the source text.
404+
The result of StringIntlMV is a List value with two elements, a mathematical value and the count of decimal digits in the source text.
405405
</p>
406406
</ins>
407407
</emu-note>
@@ -473,7 +473,7 @@ contributors: Eemeli Aro
473473
It returns _value_ converted to an <dfn id="intl-mathematical-value">Intl mathematical value</dfn>, <del>which</del><ins>a Record with two fields:</ins>
474474
<ins>[[Value]]</ins> is a mathematical value <del>together with</del><ins>or one of</ins> ~positive-infinity~, ~negative-infinity~, ~not-a-number~, <ins>or ~negative-zero~,</ins> and
475475
<del>~negative-zero~</del><ins>[[StringDigits]] is an integer indicating the number of significant digits in _value_ when it is a String, or 0 otherwise</ins>.
476-
This abstract operation is similar to <emu-xref href="#sec-tonumeric"></emu-xref>, but a mathematical value can be returned instead of a Number or BigInt<del>, so that</del><ins> and the full precision of the parsed string is retained, allowing</ins> exact decimal values <del>can</del><ins>to</ins> be represented.
476+
This abstract operation is similar to <emu-xref href="#sec-tonumeric"></emu-xref>, but <del>a mathematical value can be returned instead of a Number or BigInt, so that exact decimal values can be represented</del><ins>retains the full precision of numeric strings</ins>.
477477
</dd>
478478
</dl>
479479
<emu-alg>
@@ -488,10 +488,10 @@ contributors: Eemeli Aro
488488
1. Let _text_ be StringToCodePoints(_str_).
489489
1. Let _literal_ be ParseText(_text_, |StringNumericLiteral|).
490490
1. If _literal_ is a List of errors, return <del>~not-a-number~</del><ins>the Record { [[Value]]: ~not-a-number~, [[StringDigits]]: 0 }</ins>.
491-
1. Let <del>_intlMV_</del><ins>_parseRes_</ins> be the StringIntlMV of _literal_.
492-
1. <ins>Let _intlMV_ be the first element of _parseRes_.</ins>
491+
1. Let <del>_intlMV_</del><ins>_stringData_</ins> be the StringIntlMV of _literal_.
492+
1. <ins>Let _intlMV_ be _stringData_[0].</ins>
493493
1. <ins>If _primValue_ is a String, then</ins>
494-
1. <ins>Let _stringDigits_ be the second element of _parseRes_.</ins>
494+
1. <ins>Let _stringDigits_ be _stringData_[1].</ins>
495495
1. <ins>Else,</ins>
496496
1. <ins>Let _stringDigits_ be 0.</ins>
497497
1. If _intlMV_ is a mathematical value, then

0 commit comments

Comments
 (0)