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` a static method #69

Closed jessealama closed 9 months ago

jessealama commented 9 months ago

The purpose of static methods is to make the ergonomics of this package line up with a possible future in which arithmetic operations (+, *, etc.) are overloaded. We would like == to work, someday. The basis for this will be cmp. So make cmp static.