Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 929 Bytes

Readme.md

File metadata and controls

28 lines (23 loc) · 929 Bytes

IOS Calculator in HTML

Overview

This project is a functional calculator built using HTML, CSS, and JavaScript. It supports basic arithmetic operations, percentage calculations, and sign toggling.

Features

  • Basic operations: Addition, subtraction, multiplication, and division.
  • Percentage calculation and positive/negative toggle.
  • Keyboard support for numbers and operators.
  • Touch and click interaction for buttons.
  • Dynamic display for large numbers and decimals.

Usage

  1. Open index.html in a browser.
  2. Use buttons or keyboard to input values.
  3. Press = or Enter for results.
  4. Clear input with AC. Use ± to toggle sign. Use % for percentage.

Shortcuts

  • 0-9 and . for numbers.
  • +, -, *, / for operators.
  • Enter for equals.
  • Escape or Backspace for clear.

File Structure

  • index.html: Calculator structure.
  • Inline CSS: Styling.
  • Inline JavaScript: Logic.