A modern, responsive web-based calculator that combines Classic, Scientific, Binary, and Unit Conversion modes into a single intuitive interface.
Tech Stack: JavaScript, HTML, CSS
Ideal for educational use, productivity tools, or as a UI/UX showcase.
- Basic arithmetic operations:
+,-,×,÷ - Decimal point support
- Clear All (C), Clear Entry (CE), Delete (⌫)
- Standard number pad layout
- Trigonometric:
sin,cos,tan - Logarithmic:
log,log10,ln,exp - Constants:
π,e - Operators: Power (
^), Square Root (√), Factorial (n!), Percentage (%) - Parentheses and double zero (
00) support
- Binary arithmetic:
+,-,×,÷ - Clear All (C), Clear Entry (CE), Delete (⌫)
Categories:
- Length: mm, cm, dm, m, dam, hm, km, in, ft, yd, mi
- Mass: mg, cg, dg, g, dag, hg, kg, ton, gr, oz, lb, st, ton-UK, ton-US
- Temperature: °C, °F, K
- Volume: ml, cl, dl, l, dal, hl, m³, drop, fl oz, jigger, pt (US/UK), qt (US/UK), gal (US/UK)
- Binary: Convert between Binary, Decimal, and Hexadecimal
Features:
- Reverse Units button
- Reset button
- Real-time conversion as you type
- Numbers: 0–9
- Operations:
+,-,*,/,%,^ - Decimal:
. - Equals/Calculate:
Enter - Clear:
Esc - Backspace:
Backspace - Cursor navigation:
←,→ - Parentheses:
(,)
The calculator starts in Classic mode. Switch between modes using the buttons at the top. All calculations are performed client-side in real-time using JavaScript. Keyboard input is fully supported.
This project is licensed under the MIT License. See the LICENSE file for more details.