Skip to content

Commit

Permalink
Watch out for -infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
jessealama committed Oct 8, 2024
1 parent 9024515 commit 181b3e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,9 @@ location: https://github.com/tc39/proposal-decimal/
1. If _d1_ is *NaN*<sub>𝔻</sub>, return *false*.
1. If _d2_ is *NaN*<sub>𝔻</sub>, return *false*.
1. If _d1_ is *+∞*<sub>𝔻</sub>, return *true*.
1. If _d1_ is *-∞*<sub>𝔻</sub>, return *false*.
1. If _d1_ is *-∞*<sub>𝔻</sub>, then
1. If _d2_ is *-∞*<sub>𝔻</sub>, return *true*.
1. Otherwise, return *false*.
1. If _d2_ is *+∞*<sub>𝔻</sub>, return *false*.
1. If _d2_ is *-∞*<sub>𝔻</sub>, return *true*.
1. If MV(_d1_) β‰₯ MV(_d2_), return *true*.
Expand Down

0 comments on commit 181b3e4

Please sign in to comment.