jessealama / decimal128

JavaScript userland partial implementation of IEEE 754 Decimal128 decimal floating-point arithmetic
BSD 2-Clause "Simplified" License
19 stars 8 forks source link

Support accepting arbitrary number of arguments to addition, subtraction, multiplication, and division #13

Closed jessealama closed 1 year ago

jessealama commented 1 year ago

Currently, addition, subtraction, multiplication, and division are all binary operations, in the sense that the methods corresponding to these operations in instances Decimal128 take a single argument. Support an arbitrary number of arguments. Association is to the left.