Skip to content

Responsive web-based calculator that combines Classic, Scientific, Binary, and Unit Conversion modes into a single intuitive interface.

License

Notifications You must be signed in to change notification settings

Bazzomir/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4-in-1 Calculator Web App

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.


🔢 Calculator Modes

1. Classic Calculator

  • Basic arithmetic operations: +, -, ×, ÷
  • Decimal point support
  • Clear All (C), Clear Entry (CE), Delete (⌫)
  • Standard number pad layout

2. Scientific Calculator

  • Trigonometric: sin, cos, tan
  • Logarithmic: log, log10, ln, exp
  • Constants: π, e
  • Operators: Power (^), Square Root (), Factorial (n!), Percentage (%)
  • Parentheses and double zero (00) support

3. Binary Calculator

  • Binary arithmetic: +, -, ×, ÷
  • Clear All (C), Clear Entry (CE), Delete (⌫)

4. Unit Converter

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

⌨️ Keyboard Support

  • Numbers: 0–9
  • Operations: +, -, *, /, %, ^
  • Decimal: .
  • Equals/Calculate: Enter
  • Clear: Esc
  • Backspace: Backspace
  • Cursor navigation: ,
  • Parentheses: (, )

🚀 Usage

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.


🌐 Live Demo

👉 Try it here


📄 License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Responsive web-based calculator that combines Classic, Scientific, Binary, and Unit Conversion modes into a single intuitive interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published