Lewati ke konten utama
Versi: 1.0

📱 Basic Calculator

This calculator supports basic arithmetic operations and includes several utility functions.


🖥️ Display

  • Top display screen shows the current input or result.
  • Starts with 0 and updates as you enter numbers and operations.

🧮 Button Functions

🔘 Top Row

ButtonFunction
ACClears all input and resets the calculator to 0
±Toggles the sign of the current number (positive/negative)
%Converts the current number to a percentage (divides by 100)
÷Division operation

🔢 Number Buttons (0–9)

  • Used to input numeric values.

✖️ ➕ ➖ Arithmetic Operations

ButtonFunction
×Multiplication
Subtraction
+Addition

⬇️ Bottom Row

ButtonFunction
0Input the number 0
.Adds a decimal point to input a floating-point number
=Calculates the result based on entered expression

📝 Example Usage

  1. Addition: Tap 2, then +, then 3, then = → Display shows 5

  2. Percentage: Tap 50, then % → Display shows 0.5

  3. Change Sign: Tap 9, then ± → Display shows -9

  4. Clear All: Tap AC → Display resets to 0


📌 Notes

  • Only one operation can be performed at a time (e.g., no parentheses or order of operations).
  • Decimal calculations are supported.
  • The calculator operates immediately when = is pressed.