Skip to content

Fubge/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

This is a simple calculator implemented using HTML, CSS, and JavaScript. It allows you to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Example

grafik

Usage

  1. The calculator display shows the current input and the result of calculations.
  2. Use the number buttons to enter values for calculations.
  3. Press the operator buttons (+, -, *, ÷) to select the desired operation.
  4. Continue entering numbers and operators to build your calculation.
  5. Press the "=" button to display the result of the calculation.
  6. Press the "AC" button to clear the screen and start a new calculation.
  7. Press the "C" button to delete the last entered digit or operator.
  8. Press the "." button to add a decimal point to your number.

Example

Perform addition:

  • Enter the first number using the number buttons (e.g., 5).
  • Press the "+" button.
  • Enter the second number (e.g., 3).
  • Press the "=" button to see the result (8).

Limitations

  • The calculator supports calculations with whole numbers and decimal numbers.
  • The maximum number of digits that can be entered is 16.
  • The calculator does not support advanced mathematical functions or operations.

Copyright (C) 2023 Fubge

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.