-1

I am receiving data as,

{
    "balance": 1e+22
}

and I want it as,

{
    "balance": 10000000000000000000000 
}

What should I do so that I get proper response value in Node APIs?

  • 3
    Does this answer your question? [How to avoid scientific notation for large numbers in JavaScript?](https://stackoverflow.com/questions/1685680/how-to-avoid-scientific-notation-for-large-numbers-in-javascript) – Sabito stands with Ukraine Nov 13 '20 at 10:54

1 Answers1

-2

Solution found: How to avoid scientific notation for large numbers in JavaScript?

Code which worked as a perfect solution: BigInt(n).toString();