Skip to content

Commit

Permalink
Add note about deviating from IEEE 754
Browse files Browse the repository at this point in the history
  • Loading branch information
jessealama committed Apr 16, 2024
1 parent 94d06c4 commit 4d35029
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ location: https://github.com/tc39/proposal-decimal/
</emu-clause>
<emu-clause id="sec-decimal.prototype.remainder">
<h1>Decimal128.prototype.remainder ( _x_ )</h1>
<p>Computes the remainder of dividing <emu-xref href="#dfn-map-to-ieee-754-decimal128">B</emu-xref> of *this_ value by <emu-xref href="#dfn-map-to-ieee-754-decimal128">B</emu-xref> of *_x_* according to the rules of the IEEE 754 Decimal128 specification and returns <emu-xref href="#dfn-map-from-ieee-754-decimal128">A</emu-xref> of the resulting Decimal128 value. The sign of the result is the sign of *this* value. Returns a fresh result.</p>
<p>Computes the remainder of dividing *this_ value by *_x_*. Exact division of *this* by *_x_* is carried out until the computation stops; the residue of that computation is returned. The sign of the result is the sign of *this* value. Returns a fresh result.</p>
<emu-note>
<p>The remainder operation specified here deviates from the IEEE 754 remainder operation.</p>
</emu-note>
</emu-clause>
<emu-clause id="sec-decimal.prototype.equals">
<h1>Decimal128.prototype.equals ( _x_ )</h1>
Expand Down

0 comments on commit 4d35029

Please sign in to comment.