Skip to content

seannn-sudo/project-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator Application

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.

Features

  • 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.

How to Use

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.

Limitation

The calculator has a maximum precision of 10 decimal places for the result.

Compatibility

The application is compatible with modern web browsers such as Google Chrome, Mozilla Firefox, Microsoft Edge, Safari, etc.

Author

The Calculator application was developed by seannn-sudo.

License

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published