margelo / react-native-bignumber

🔢 The fastest Big Number library for React Native
https://margelo.io
MIT License
337 stars 11 forks source link

bignumber.js support? #52

Open alexdonh opened 2 years ago

alexdonh commented 2 years ago

Hi @mrousavy I just wonder if this will also support easy drop-in replacement for bignumber.js?

Nodonisko commented 1 year ago

Also interested. If I will have time I will try to compare bignumber.js API vs bn.js API and that should give us answer.

snicro commented 1 year ago

I think a key difference would be floating point support. bn.js doesn't have it and bignumber.js does.

mrousavy commented 1 year ago

This lib does support floating points natively, however to make it compatible with bn.js we didn't expose that API. We can easily create an API layer for bignumber.js as well and have floating point operations - it would also be a lot faster than bignumber.js

Reach out to me over email if you want us to work on this

allen-hsu commented 1 year ago

Hi, @mrousavy could you support bignumber.js ? I think it's very useful, thx your help..