How to express long integers with JavaScript
There is no concept of long integer in JS. In fact, JS internally uses floating-point format to represent all values, that is, float. But your 20 digits are really too big. Usually, if the calculation result is not very large, you can consider truncating the same bit on the left of two strings, then parseInt (), and then subtracting.