Skip to content

ferristhiel/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Calculator

A simple web-based calculator built with HTML, CSS, and JavaScript.

Overview

This project provides a basic calculator interface for performing arithmetic operations such as addition, subtraction, multiplication, and division. The calculator is responsive and works in modern browsers.

Features

  • Addition, subtraction, multiplication, and division
  • Decimal point support
  • Clear (C) button to reset input
  • Delete (⌫) button to remove the last character
  • Responsive design

Known Bugs

  • Chained operations (e.g., 2 + 3 + 4) may not work as expected; only two-number operations are supported at a time.
  • No support for parentheses or advanced mathematical functions.
  • Input validation is minimal (e.g., multiple decimals can be entered).

How to Use

Option 1: Clone and Run Locally

  1. Clone the repository:
    git clone https://github.com/FerrisThiel/calculator.git
    cd calculator
  2. Open index.html in your web browser.

Option 2: Use Online

Access the calculator directly at:
https://ferristhiel.github.io/calculator

File Structure

  • index.html – Main HTML file
  • style.css – Stylesheet
  • app.js – Calculator logic

License

MIT License

About

Webbased Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages