Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ contributors: Eemeli Aro
</h1>
<dl class="header">
<dt>description</dt>
<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>
<dd>It creates the parts representing the mathematical value of _x_ according to the effective locale and the formatting options of _numberFormat_.</dd>
</dl>

<emu-alg>
Expand Down Expand Up @@ -401,7 +401,7 @@ contributors: Eemeli Aro
<ins class="block">
<p>
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.
The result of StringIntlMV is a List value with two elements, a mathematical value and the number of decimal digits in the source text.
The result of StringIntlMV is a List value with two elements, a mathematical value and the count of decimal digits in the source text.
</p>
</ins>
</emu-note>
Expand Down Expand Up @@ -473,7 +473,7 @@ contributors: Eemeli Aro
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>
<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
<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>.
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.
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>.
</dd>
</dl>
<emu-alg>
Expand All @@ -488,10 +488,10 @@ contributors: Eemeli Aro
1. Let _text_ be StringToCodePoints(_str_).
1. Let _literal_ be ParseText(_text_, |StringNumericLiteral|).
1. If _literal_ is a List of errors, return <del>~not-a-number~</del><ins>the Record { [[Value]]: ~not-a-number~, [[StringDigits]]: 0 }</ins>.
1. Let <del>_intlMV_</del><ins>_parseRes_</ins> be the StringIntlMV of _literal_.
1. <ins>Let _intlMV_ be the first element of _parseRes_.</ins>
1. Let <del>_intlMV_</del><ins>_stringData_</ins> be the StringIntlMV of _literal_.
1. <ins>Let _intlMV_ be _stringData_[0].</ins>
1. <ins>If _primValue_ is a String, then</ins>
1. <ins>Let _stringDigits_ be the second element of _parseRes_.</ins>
1. <ins>Let _stringDigits_ be _stringData_[1].</ins>
1. <ins>Else,</ins>
1. <ins>Let _stringDigits_ be 0.</ins>
1. If _intlMV_ is a mathematical value, then
Expand Down