Skip to content

Conversation

@crigrii
Copy link

@crigrii crigrii commented Nov 18, 2025

What was changed

  • Replaced the two empty placeholder buttons in the UI with fully functional % and log buttons.
  • Modified the input handler so that pressing the log button correctly inserts log( into the expression.
  • Added support for logarithmic calculations by exposing math.log inside the evaluator.
  • Preserved the original layout, structure, and coding style of the project without introducing unrelated modifications.

Why this change was made

The project originally included two unused buttons intended for future implementation.
Issue #6 specifically requested adding modulo and logarithm support.

This PR resolves that request by:

  • Completing those two missing functionalities,
  • Expanding the calculator’s mathematical capabilities,
  • Maintaining compatibility with the existing architecture,
  • Avoiding dead buttons or incomplete UI elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant