Skip to content

Infinite Integer Calculator that using both BigInt and Mathematics approaches.

Notifications You must be signed in to change notification settings

nguyenalter/InfiniteIntegerCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinite Integer Calculator

Infinite Integer Calculator that using both BigInt and Mathematics approaches.

What is BigInt type?

The build-in object to represent number larger than Number.MAX_SAFE_INTEGER.

What is Mathematics Approach?

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.

Validate Input

Input may start with an unary op like "+" or "-" and following by many digits. Any leading zeros will be remove.

Features

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

Demo version of the calculator can be found here

Tech

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

About

Infinite Integer Calculator that using both BigInt and Mathematics approaches.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published