Skip to content

Commit

Permalink
Add neg, remove options to less-than and equals (#121)
Browse files Browse the repository at this point in the history
* Add negation

* Remove spurious argument to absolute value

* Remove options to less-than and equals

Also, compare by mathematical value.

* Document that negation is present
  • Loading branch information
jessealama authored Apr 12, 2024
1 parent 1f3b246 commit 0238031
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 65 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ console.log(a.toString({ normalize: false })); // -4.00

### Operator semantics

+ Absolute value, addition, multiplication, subtraction, division, and remainder are defined.
+ Absolute value, addition, multiplication, subtraction, division, remainder, and negation are defined.
+ Bitwise operators are not supported, as they don’t logically make sense on the Decimal domain ([#20](https://github.com/tc39/proposal-decimal/issues/20))
+ rounding: all seven rounding modes of `Intl.NumberFormat` and `Temporal` will be supposed (in particular, all five rounding modes of IEEE 754 will be supported)
+ We currently do not foresee Decimal values interacting with other Number values. Expect TypeErrors when trying to add, say, a Number to a Decimal, like for BigInt and Number. ([#10](https://github.com/tc39/proposal-decimal/issues/10)).
Expand Down
Loading

0 comments on commit 0238031

Please sign in to comment.