This project is a functional calculator built using HTML, CSS, and JavaScript. It supports basic arithmetic operations, percentage calculations, and sign toggling.
- 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.
- Open
index.html
in a browser. - Use buttons or keyboard to input values.
- Press
=
orEnter
for results. - Clear input with
AC
. Use±
to toggle sign. Use%
for percentage.
0-9
and.
for numbers.+
,-
,*
,/
for operators.Enter
for equals.Escape
orBackspace
for clear.
index.html
: Calculator structure.- Inline CSS: Styling.
- Inline JavaScript: Logic.