Can anybody explain why Number('31301006300002607') ( or parseInt('31301006300002607') ) returns 31301006300002610? Tried in Chrome and Firefox. Any implicit length restrictions?
Actually I need to validate up to 18-digits number along with truncating leading zeros but prefer to avoid regular expressions for such simple task.