In my application, I need to handle some currency fields which deals upto 21 number of digits. And the values needed to be calculated for further actions.
I have used parseFloat in the calculations previously when the maximum digit is < 15. Now since the requirement is 21 digits, the parseFloat is not supporting properly. It supports up to 17 digits properly. But after 17th digits, it rounds off the value.
So is there any alternatives to parseFloat? or any other methods through which I can handle this issue?
Application Background:
- C# Application
- AngularJS, Javascript involved
- Database: SQL