Classic calculator

final classic calculator
Containing :
history to save the result
memory button
Clean code to avoid most errors
Variables and methods were used with parametars
Open source
I hope you benefit from the code and you like it
sc
Classic_calculator.aia (34.7 KB)

4 Likes

Dot . button not working
can't start with .number
there isn't backspace button

Since it is 4 years since this was posted, maybe you could make a version that does what you want.

1 Like

This the Updated AIA File

Updates

Bug Fixes:

  • Fixed an issue that caused the app to crash when performing division by zero by adding a condition to prevent such operations.
  • Corrected certain mathematical operations involving decimal points (dot) to ensure proper parsing and accurate calculations.

New Features Added:**
Backspace Button:* A new button to delete the last digit or character entered.
Long Press on "=" Button:* Copies the result to the clipboard for quick reuse.
Long Press on "C" Button:* Clears the memory/cache.
Long Press on "H" Button:* Clear history.

:art: User Interface Improvements:**

  • Enhanced layout for better visibility and accessibility
  • on/off setting button
  • clear history/memory from setting

Classic_calulator_updated_version.aia (64.3 KB)

Thanks to Peter