Skip to content

Fix implicit multiplication: handle cases like (25)2 → 25*2#2452

Open
adithya-naik wants to merge 1 commit intomicrosoft:mainfrom
adithya-naik:fix-implicit-multiplication-#2451
Open

Fix implicit multiplication: handle cases like (25)2 → 25*2#2452
adithya-naik wants to merge 1 commit intomicrosoft:mainfrom
adithya-naik:fix-implicit-multiplication-#2451

Conversation

@adithya-naik
Copy link
Copy Markdown

Fixes #2451

Description of the changes:

  • Added handling for implicit multiplication after parentheses, e.g., (25)2(25)*2.
  • Updated parser logic to insert * automatically when a number follows a closing parenthesis.
  • This ensures expressions like 900+(25)2 evaluate correctly as 950.

How changes were validated:

  • Full Calculator app was not built due to local environment constraints, but logic matches expected results.

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.

[Bug] Implicit multiplication after closing parenthesis causes preceding operand to be dropped from computation

1 participant