This is a simple calculator application built using HTML, CSS, and JavaScript. The application provides a user interface for performing basic arithmetic calculations, including addition, subtraction, multiplication, and division.
- Users can perform basic arithmetic operations: addition, subtraction, multiplication, and division.
- The calculator supports negative numbers and decimal numbers.
- Users can use keyboard input in addition to button clicks to perform calculations.
- The application has a responsive design and can adapt to various screen sizes.
1. Clone the repository or download the source code to your local machine.
2. Open the index.html file in your web browser.
3. The calculator interface will be displayed on the screen.
4. You can use the mouse to click on the buttons to input numbers and operators.
5. Alternatively, you can use the keyboard for input. The keyboard input is as follows:
- '0' to '9': Enter the corresponding digits.
- '+': Addition
- '-': Subtraction
- '*': Multiplication
- '/': Division
- '.': Decimal point
- 'Enter': Equals '='
- 'Backspace': Clear 'C'
- 'Escape': Clear all 'AC'
6. The current expression is displayed on the top, and the result is shown below.
7. To perform a calculation, click the '=' button or press the 'Enter' key.
The calculator has a maximum precision of 10 decimal places for the result. The application is compatible with modern web browsers such as Google Chrome, Mozilla Firefox, Microsoft Edge, Safari, etc. The Calculator application was developed by seannn-sudo. This project is open-source and available under the MIT License. Feel free to use and modify the code as per the terms of the license.