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

Add calculator class for doing arbitrarily complex calculations #27

Closed jessealama closed 1 year ago

jessealama commented 1 year ago

The new class enables us to do calculations with decimals as if they were rational numbers. All intermediate results of the calculation are mathematically exact, and the final Decimal128 result is maximally precise (given the data model).