MikeMcl / bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic
http://mikemcl.github.io/bignumber.js
MIT License
6.64k stars 741 forks source link

Convenience functions (i.e. BN.sub) #284

Closed Code0x2 closed 3 years ago

Code0x2 commented 3 years ago

Is it possible to add a few more convenience functions for this library?

BN.sub = BN.minus BN.mul = BN.times BN.add = BN.plus

Just shorter and easier to remember, not that big of a problem but would be nice

Code0x2 commented 3 years ago

Nvm- Made a PR would be nice if someone can review it here