Your already familiar iPhone calculator right on the Web!
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Get the iconic look and feel of your day to day built in pocket calculator of iOS. But now with the enhanced calculation history feature.
- Basic calculation with addition, subtraction, multiplication and division operations
- Usage tips:
- We support single operation as well as chain of operations.
- To calculate a chain of operations, simply input the next operators after getting the result of the previous operation on the result screen.
- The result of the previous operation will be used as the first operand in the next operation
- The result of the operation is calculated at the time the next operator or the equal operator is selected
- As a result, operators precedence is not supported in this version of the application (that could be supported if we implement parenthesis operators)
- Toggle between negative and positive numbers
- Usage tips:
- Use this key to toggle between positive and negative number after entering any operands
- If you toggle this key before inputting the second operand (which means just after entering the operator), it will apply the logic to the first operand and use it as the second operand for the operation.
- Calulation with decimal numbers
- Usage tips:
- Use this key before entering the decimal part of a operand
- We provide a shortcut that if you don't enter the whole part first, the whole part will be assumed to be the zero number.
- We round the result of all operations with decimal numbers upto 8 numbers after the decimal point.
- Clear the most recent entry
- Clear all entries
- Usage tips:
- Using this feature don't affect the existing calculation history.
- This key will appear after using the
Clear the most recent entry
feature - Selecting the key multiple times does't change its behaviour.
- Toggle showing calculation history
- Usage tips:
- Use this key to toggle showing all the calculation history.
- npm
npm install npm@latest -g
-
Clone the repo
git clone https://github.com/sangbk208/calculator-app.git
-
Install NPM packages
npm install
-
Run all unit tests
npm test
-
Run the application locally
npm start
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Sang Nguyen- @sbk208 - sangbk208@gmail.com
Project Link: https://github.com/sangbk208/calculator-app