Skip to content

Commit

Permalink
fixup: [spec] npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
jessealama committed Oct 8, 2024
1 parent 8be5d49 commit 603868c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,7 @@ <h1><span class="secnum">2.19</span> Decimal128.prototype.round ( <var>numFracti
<h1><span class="secnum">2.20</span> Decimal128.prototype.scale10 ( <var>n</var> )</h1>
<p>This method multiplies the current Decimal128 object by 10 raised to the given power.</p>
<p>It performs the following steps when called:</p>
<emu-alg><ol><li>Let <var>O</var> be the <emu-val>this</emu-val> value.</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>O</var>, <var class="field">[[Decimal128Data]]</var>).</li><li>If <var>n</var> <emu-xref href="#sec-ecmascript-language-types-number-type"><a href="https://tc39.es/ecma262/#sec-ecmascript-language-types-number-type">is not a Number</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>n</var> is not one of « <emu-val>NaN</emu-val><sub>𝔽</sub>, <emu-val>+∞</emu-val><sub>𝔽</sub>, <emu-val>-∞</emu-val><sub>𝔽</sub>&nbsp;», then<ol><li>If <emu-xref aoid="ℝ"><a href="https://tc39.es/ecma262/#ℝ">ℝ</a></emu-xref>(<var>n</var>) is not an <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>, throw a <emu-val>RangeError</emu-val> exception.</li></ol></li><li>Let <var>d</var> be <var>O</var>.<var class="field">[[Decimal128Data]]</var>.</li><li>If <var>d</var> is <emu-val>NaN</emu-val><sub>𝔻</sub>, <emu-val>+∞</emu-val><sub>𝔻</sub>, or <emu-val>-∞</emu-val><sub>𝔻</sub>, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_231"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<var>d</var>).</li><li>If <var>d</var> is either <emu-val>+0</emu-val><sub>𝔻</sub> or <emu-val>−0</emu-val><sub>𝔻</sub>, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_232"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<var>d</var>).</li><li>If <var>n</var> is <emu-val>NaN</emu-val><sub>𝔽</sub>, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_233"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>NaN</emu-val><sub>𝔻</sub>).</li><li>If <var>n</var> is <emu-val>+∞</emu-val><sub>𝔽</sub>, then<ol><li>If <var>d</var> &gt; 0, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_234"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>+∞</emu-val><sub>𝔻</sub>).</li><li>Otherwise, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_235"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>-∞</emu-val><sub>𝔻</sub>).</li></ol></li><li>If <var>n</var> is <emu-val>-∞</emu-val><sub>𝔽</sub>, then<ol><li>If <var>d</var> &gt; 0, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_236"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>+0</emu-val><sub>𝔻</sub>).</li><li>Otherwise, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_237"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>−0</emu-val><sub>𝔻</sub>).</li></ol></li><li>Let <var>w</var> be v × 10<sup><emu-xref aoid="ℝ"><a href="https://tc39.es/ecma262/#ℝ">ℝ</a></emu-xref>(<var>n</var>)</sup>.</li><li>Return <emu-xref aoid="Decimal128ValueToObject" id="_ref_238"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-xref aoid="RoundToDecimal128Domain" id="_ref_239"><a href="#sec-decimal128-roundtodecimal128domain">RoundToDecimal128Domain</a></emu-xref>(<var>w</var>)).</li></ol></emu-alg>
<emu-alg><ol><li>Let <var>O</var> be the <emu-val>this</emu-val> value.</li><li>Perform ?&nbsp;<emu-xref aoid="RequireInternalSlot"><a href="https://tc39.es/ecma262/#sec-requireinternalslot">RequireInternalSlot</a></emu-xref>(<var>O</var>, <var class="field">[[Decimal128Data]]</var>).</li><li>If <var>n</var> <emu-xref href="#sec-ecmascript-language-types-number-type"><a href="https://tc39.es/ecma262/#sec-ecmascript-language-types-number-type">is not a Number</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>n</var> is not one of « <emu-val>NaN</emu-val><sub>𝔽</sub>, <emu-val>+∞</emu-val><sub>𝔽</sub>, <emu-val>-∞</emu-val><sub>𝔽</sub>&nbsp;», then<ol><li>If <emu-xref aoid="ℝ"><a href="https://tc39.es/ecma262/#ℝ">ℝ</a></emu-xref>(<var>n</var>) is not an <emu-xref href="#integer"><a href="https://tc39.es/ecma262/#integer">integer</a></emu-xref>, throw a <emu-val>RangeError</emu-val> exception.</li></ol></li><li>Let <var>d</var> be <var>O</var>.<var class="field">[[Decimal128Data]]</var>.</li><li>If <var>d</var> is <emu-val>NaN</emu-val><sub>𝔻</sub>, <emu-val>+∞</emu-val><sub>𝔻</sub>, or <emu-val>-∞</emu-val><sub>𝔻</sub>, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_231"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<var>d</var>).</li><li>If <var>d</var> is either <emu-val>+0</emu-val><sub>𝔻</sub> or <emu-val>−0</emu-val><sub>𝔻</sub>, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_232"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<var>d</var>).</li><li>If <var>n</var> is <emu-val>NaN</emu-val><sub>𝔽</sub>, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_233"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>NaN</emu-val><sub>𝔻</sub>).</li><li>If <var>n</var> is <emu-val>+∞</emu-val><sub>𝔽</sub>, then<ol><li>If <var>d</var> &gt; 0, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_234"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>+∞</emu-val><sub>𝔻</sub>).</li><li>Otherwise, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_235"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>-∞</emu-val><sub>𝔻</sub>).</li></ol></li><li>If <var>n</var> is <emu-val>-∞</emu-val><sub>𝔽</sub>, then<ol><li>If <var>d</var> &gt; 0, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_236"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>+0</emu-val><sub>𝔻</sub>).</li><li>Otherwise, return <emu-xref aoid="Decimal128ValueToObject" id="_ref_237"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-val>−0</emu-val><sub>𝔻</sub>).</li></ol></li><li>Let <var>w</var> be <var>d</var> × 10<sup><emu-xref aoid="ℝ"><a href="https://tc39.es/ecma262/#ℝ">ℝ</a></emu-xref>(<var>n</var>)</sup>.</li><li>Return <emu-xref aoid="Decimal128ValueToObject" id="_ref_238"><a href="#sec-decimal128-value-to-object">Decimal128ValueToObject</a></emu-xref>(<emu-xref aoid="RoundToDecimal128Domain" id="_ref_239"><a href="#sec-decimal128-roundtodecimal128domain">RoundToDecimal128Domain</a></emu-xref>(<var>w</var>)).</li></ol></emu-alg>
<emu-note><span class="note">Note</span><div class="note-contents">
<p>This operation follows the specification of the <code>scaleB</code> operation discussed in Section 5.3.3 of <emu-xref href="#sec-bibliography"><a href="https://tc39.es/ecma262/#sec-bibliography">IEEE 754-2019</a></emu-xref>.</p>
</div></emu-note>
Expand Down

0 comments on commit 603868c

Please sign in to comment.