Skip to content

Commit

Permalink
Editorial: Math.round: use _n_ instead of _x_
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck committed Sep 13, 2020
1 parent 118b270 commit 184fac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -27974,8 +27974,8 @@ <h1>Math.round ( _x_ )</h1>
<emu-alg>
1. Let _n_ be ? ToNumber(_x_).
1. If _n_ is an integral Number, return _n_.
1. If _x_ &lt; 0.5 and _x_ &gt; 0, return *+0*.
1. If _x_ &lt; 0 and _x_ &ge; -0.5, return *-0*.
1. If _n_ &lt; 0.5 and _n_ &gt; 0, return *+0*.
1. If _n_ &lt; 0 and _n_ &ge; -0.5, return *-0*.
1. Return the integral Number closest to _n_, preferring the Number closer to *+&infin;* in the case of a tie.
</emu-alg>
<emu-note>
Expand Down

0 comments on commit 184fac9

Please sign in to comment.