Closed munanadi closed 2 years ago
You need to work with strings, not numbers.
For starters, you're in the wrong repo. I assume you're using big.js not bignumber.js.
Anyway, here's a pointer to the pow
documentation. You should be able to work it out from there.
Hint: you need to change Big.DP
.
And, yes, you should be passing numbers with more than a few digits as strings.
Apologies. I should have written the explicit code. I did change the necessary methods calls to suit this library. Thanks for your help :+1:
This is the calc I'm trying to replicate using the library
Am I doing something wrong? Is there a limit on the max numbers that I can use? Any pointers will help. Thank you!