Skip to content

Conversation

@patelscripts
Copy link

What was wrong?
A decimal was only permitted by the logic if there were no dots in the entire input.
For instance, after typing 3.5 +, it was not possible to enter another decimal, such as 2.4.

  • This limited valid decimal inputs and caused incorrect validation.

What's fixed?
Decimal validation has been updated to: - Permit one decimal per number segment - Prevent multiple decimals in the same number - Maintain current functionality

Tested: (Correctly blocked) single number multiple decimals
Multi-number decimals ✔ (Working) - Decimals + mixed operations ✔

This fix enhances the calculator's accuracy and usability without changing its fundamental functionality.
Screenshot (2)

@patelscripts
Copy link
Author

Hi 👋, please review this PR whenever possible.

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