react-native-bignumber icon indicating copy to clipboard operation
react-native-bignumber copied to clipboard

bignumber.js support?

Open alexdonh opened this issue 2 years ago • 4 comments

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

alexdonh avatar Jun 01 '22 16:06 alexdonh

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.

Nodonisko avatar Oct 27 '22 11:10 Nodonisko

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

snicro avatar Nov 19 '22 14:11 snicro

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

mrousavy avatar Nov 21 '22 10:11 mrousavy

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

allen-hsu avatar Feb 09 '23 06:02 allen-hsu