0
15 digit integer split to each 5 digits in javascript?? anyone have solution?
In javascript
2 Respuestas
+ 2
To convert a 15-digit number to 3 5-digit numbers?
+ 2
Try modulo 100000 to get the last 5 digits.
y3 = x % 100000
Then you can continue with division and rounding to cut the last 5 digits, and repeat...
y2 = parseInt(x / 100000) % 100000