I want to get the balance (number of tokens) from the token smart contract.
I'm using web3.js to interact with the contract, and am able to get a return value.
However, with this value, if I do .toString(), I see that it has the correct value.
However, if I do .toNumber(), it gives me an error:
Error: Number can only safely store up to 53 bits
Why does this happen? And how can I get the balance of a particular account from a smart contract, as a number (not a string)?