Has anyone got a nice way to format the numbers returned by the getTokenBalances function?
{name: “PolyDoge”, symbol: “PolyDoge”, logo: null, thumbnail: null, decimals: “18”, balance: “3104546958823671965056305304558” }
“3104546958823671965056305304558”
These balances return numbers so big, that I’m having issues trying to format them down to comma spaces and decimal.
This is what it should look like: 3,104,546,958,823.671965056305304558
Maybe someone has a clever trick.