This web-based calculator mimics the functionality of a standard pocket calculator, supporting basic arithmetic operations like addition, subtraction, multiplication, division, as well as percentage calculations.
- Basic Arithmetic Operations: Perform addition (
+), subtraction (-), multiplication (*), and division (/). - Percentage Calculation: Easily find the percentage of a number with the
%button. - Clear Functionality: Reset the calculator completely with the 'AC' button.
To run this calculator on your local machine, follow these steps:
Ensure you have a modern web browser installed (Google Chrome, Mozilla Firefox, Microsoft Edge, etc.).
-
Clone or download this repository to your local machine. If you have Git installed, you can clone it using the following command: Alternatively, you can download the repository as a ZIP file and extract it.
-
Navigate to the project directory where the repository has been cloned or downloaded and extracted.
-
Open the
index.htmlfile in your web browser. You can usually do this by right-clicking the file and selecting "Open with" and then choosing your browser.
- Using the Mouse: Click on the buttons on the calculator to enter numbers and operations.
Contributions to this project are welcome! Here's how you can contribute:
- Fork the repository: Click on the 'Fork' button at the top of this page.
- 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 - Submit a pull request: Go to the 'Pull Requests' tab and hit 'New pull request'.