javascript number type of precision is lost

We encountered a problem today, when the method receives parameters, parameter values ​​change.

The original value is XXXXXXXXXXXXXXXXXXX0002 (a long string of numbers, it should be character type)

End of the argument actually received a 0. 2 goes looking for a long time do not understand

Later, I do not know where the rest of the time flashed a light, the feeling may be loss of accuracy problems.

1.js the number type, double precision and long will be lost, specifically how many will lose precision has not been studied

2.js knowingly passing parameters to a string according to the wording of the string (quotation marks)

3. To calm

Guess you like

Origin www.cnblogs.com/peng18/p/12104075.html