Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/withfabian/calculator-v2

Advanced Calculator V2
https://github.com/withfabian/calculator-v2

calculator calculator-v2 css html javascript source

Last synced: 6 days ago
JSON representation

Advanced Calculator V2

Awesome Lists containing this project

README

        


# Advanced Calculator

![Preview](https://raw.githubusercontent.com/withfabian/calculator-v2/refs/heads/main/preview.png)

This project is an advanced web-based calculator built using HTML, CSS, and JavaScript. The calculator includes basic operations, as well as advanced functions like square root, exponentiation, and memory functions. Its interface is designed to be simple, modern, and responsive.

## Features

- **Basic Operations**: Supports addition, subtraction, multiplication, and division.
- **Advanced Operations**:
- Square root
- Square (x²)
- Custom exponent (x^y)
- **Memory Functions**:
- **MC**: Memory Clear - clears the memory
- **MR**: Memory Recall - recalls the memory value
- **M+**: Memory Add - adds the current display value to memory
- **M-**: Memory Subtract - subtracts the current display value from memory
- **Clear and Clear Entry**:
- **AC**: All Clear - clears all input
- **CE**: Clear Entry - removes the last entry
- **Toggle Sign**: Changes the sign of the current input (positive/negative).
- **Percentage Calculation**: Calculates percentages.
- **Responsive Design**: Optimized for different screen sizes.

## Preview

Screenshot of the calculator:

![Preview](https://raw.githubusercontent.com/withfabian/calculator-v2/refs/heads/main/preview.png)

## Usage

1. **Clone this repository** to your computer:
```bash
git clone https://github.com/withfabian/calculator.git
```

2. **Open the `index.html` file** in a web browser to use the calculator.

## Project Structure

- `index.html`: The HTML structure of the calculator.
- `style.css`: The CSS file for styling the calculator interface.
- `script.js`: The JavaScript file that adds functionality to the calculator.

## Technologies Used

- **HTML** for structuring the calculator layout.
- **CSS** for styling and making the calculator responsive.
- **JavaScript** for the calculator's operational logic.

## License

This project is licensed under the MIT License.

## Acknowledgements

© 2024 Fabian Permadi