react-currency-input
react-currency-input copied to clipboard
digits larger than 16
This is a pretty nice project that you have but I noticed that if you enter more than 16 digits it starts to act extremely weird. I.e. if you do it with the prefix '$' and the value of 12345678901234.56 and then go to add a 7 the number instead is now 123456789012346.00. The behavior is odd.
Thank you. Just out of curiosity, do you have a particular use case where you need to support these large numbers?
Got same issue here. I don't need such great number, but it would be good to set a maxlength then user can't type too much numbers and trigger this odd behavior.
sorry I never saw you responded. No I didn't need such a large number but still thought it was odd that it would do that.
Any updates?
the big numbers was an issue with parseFloat, Number and parseInt in Javascript....
Only using Big Number libraries can solve that