Skip to content

Commit

Permalink
Preserve trailing zeroes, even for zero
Browse files Browse the repository at this point in the history
Also, use `let` rather than `set`
  • Loading branch information
jessealama committed Jul 25, 2024
1 parent 28f9644 commit 02eac1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intl.emu
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@
1. <ins>If _x_ is a Decimal128 value, then</ins>
1. <ins>Let _v_ be cohort(_x_).</ins>
1. <ins>If _v_ is *+0*<sub>𝔻</sub>, then</ins>
1. <ins>Set _x_ to 0.</ins>
1. <ins>Let _sign_ be ~positive~.</ins>
1. <ins>Else if _v_ is *-0*<sub>𝔻</sub>, then</ins>
1. <ins>Let _sign_ be ~negative~.</ins>
1. <ins>Otherwise:</ins>
1. <ins>If _v_ < 0, set _sign_ to ~negative~.</ins>
1. <ins>If _v_ < 0, let _sign_ to ~negative~.</ins>
1. <ins>Else, let _sign_ be ~positive~.</ins>
1. <ins>If _sign_ is ~negative~, set _x_ to Decimal128Abs(_x_).</ins>
1. Else,
Expand Down

0 comments on commit 02eac1d

Please sign in to comment.