Infinite Integer Calculator that using both BigInt and Mathematics approaches.
The build-in object to represent number larger than Number.MAX_SAFE_INTEGER.
School Mathematics teaches us how to adding, subtracting or multiplying by traversing both strings from end, one by one in order to add/subtract/multiply digits and keep track of carry. With this method, it is effective to calculate because we only have to handle operations in a single digit. The real problems is the computation time.
Input may start with an unary op like "+" or "-" and following by many digits. Any leading zeros will be remove.
The calculator can handle very large inputs. In addition, it has some utilities to view calculation history, delete it or even save it locally.
Demo version of the calculator can be found here
Calculator uses a number of open source projects:
- Bootstrap - great UI boilerplate for modern web apps
- Node.js - evented I/O for the backend
- Express - fast node.js network app framework
- StreamSaver - the stream saver for saving local file
- jQuery - JS frameworks for DOM events
- fontAwesome - web's most popular icon set and toolkit
- custom Blob - a custom Blob instead of default one