How to handle Long Number

I am having issue in handling number in angular 7.
when i see in Network then i got correct number - that is 27032020165850473.
and when it bind in variable then it gets converted 27032020165850473 to 27032020165850470.

i also changed datatype of variable number to string but no solved my problem.
please help, why this happen.

That is a very big number, bigger than you can normally handle with regular integers in JS. Do this in the dev console:


You’ll see that the number you are trying to handle is bigger than the result from above.

Fortunately, you can use a BigInt now in JS (although a few browsers still don’t support it, like Safari).

If you need to support Safari then search github for a big number library (I found several).