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

Make `cmp` work with mathematical values, unless otherwise specified #73

Closed jessealama closed 8 months ago

jessealama commented 8 months ago

Currently, cmp is the method for checking whether a value is equal to, less than, or greater than another. We want to enable comparisons both on mathematical value, and on the IEEE 754 Decimal128 value, where 1.2 and 1.20 are different.