Javascript doesn’t have integers, only 64-bit floats – and you’ve ran out of floating-point precision.
See similar issue in Java: why is the Double.parseDouble making 9999999999999999 to 10000000000000000?
More Related Contents:
- phone number validation in js [closed]
- Share data between AngularJS controllers
- When is .then(success, fail) considered an antipattern for promises?
- How to show the “Are you sure you want to navigate away from this page?” when changes committed?
- What is the JavaScript >>> operator and how do you use it?
- Multi-row insert with pg-promise
- Dealing with float precision in Javascript [duplicate]
- Render basic HTML view?
- Memory leak risk in JavaScript closures
- Pretty printing XML with javascript
- Using querySelectorAll to retrieve direct children
- JavaScript double colon (bind operator)
- Get function name in JavaScript
- What do the different readystates in XMLHttpRequest mean, and how can I use them?
- How to auto-scroll to end of div when data is added? [duplicate]
- Bootstrap datepicker disabling past dates without current date
- What reason is there to use null instead of undefined in JavaScript?
- Does Javascript slice method return a shallow copy?
- Most modern method of getting mouse position within a canvas in native JavaScript [duplicate]
- Disable elastic scrolling in Safari [duplicate]
- angular 4+ assign @Input for ngComponentOutlet dynamically created component
- A plain JavaScript way to decode HTML entities, works on both browsers and Node
- Why need useRef and not mutable variable?
- ScrollTo function in AngularJS
- Running Node.js in apache?
- Deobfuscating Javascript [closed]
- Is there a good use case for the constructor property in Javascript?
- Why does .then() chained to Promise.resolve() allow const declaration to be reassigned?
- Angular controller scope not updating after jQuery ajax call
- How can I compare two color values in jQuery/JavaScript?