Skip to content

Commit

Permalink
Swap "smallest" for "largest"
Browse files Browse the repository at this point in the history
  • Loading branch information
jessealama committed Oct 8, 2024
1 parent d684a16 commit e681121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ location: https://github.com/tc39/proposal-decimal/
1. If _sign_ = -1, let _prefix_ be *"-"*, else let _prefix_ be *""*.
1. Let _argument_ be Decimal128Abs(_argument_).
1. If _argument_ is *+0*<sub>𝔻</sub>, return the string concatenation of _prefix_ and *"0"*.
1. Let _q_ be the smallest integer such that _argument_ × 10<sup>−_q_</sup> is an integer.
1. Let _q_ be the largest integer such that _argument_ × 10<sup>−_q_</sup> is an integer.
1. Let _n_ be _argument_ × 10<sup>−_q_</sup>.
1. Assert: 0 < _n_ < 10<sup>34</sup>.
1. Let _digits_ be the unique decimal string representation of _n_ without leading zeroes.
Expand Down

0 comments on commit e681121

Please sign in to comment.