Skip to content

Commit

Permalink
Add absolute value (#106)
Browse files Browse the repository at this point in the history
* Add absolute value
  • Loading branch information
jessealama authored Mar 25, 2024
1 parent 6cad9d1 commit 095a4e2
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 37 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

+ Addition, multiplication, subtraction, division, and remainder are defined.
+ Absolute value, addition, multiplication, subtraction, division, and remainder 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 095a4e2

Please sign in to comment.