clementwzk / clementwzk/OpenCalc

App crash operating any 2 float numbers within parentheses.

Open
#590 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Description:
Within parentheses, in any operation (addition, subtraction, multiplication or division) with any given float numbers (e.g. (13.55-44.96)), at the moment I press the second period or the period of the second float number (13.55-44"."96 that one) the app simply crashes right away.
I tested it and I noticed that the bug does not happen if there's any other operation at the right side, within AND outside of the parentheses (e.g. (13.55-44.96)*34.6060 or (13.55-44.96/33.5)). And the other operation can be an int or float number and any type of operation (addition, sub...). So, doesn't matter what's in the left side, the bug will still happen anyways.

So, has to be just two float numbers, inside parentheses, and with no operations INside or OUTside on the right side.

To reproduce it:
1. Insert the parentheses -> ()
2. Try to insert inside of it any float number in any type of operation -> (23.44*54.7)
3. At the moment you try to insert the second period, or the decimal part of the second float number, the app will crash -> Crashes D:

Expected behavior:
Well, I should be able to operate with any 2 float numbers as I could with any 2 int numbers.

Smartphone:
- Device: Motorola Moto G32
- OS: Android 13
- App version 3.1.4
- Language English

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crash on Android 13 using the reported expression pattern, such as (23.44*54.7), and inspect the crash output to identify the failing calculator path. Compare input handling for two floating-point operands inside parentheses with equivalent integer expressions. Done means these expressions no longer crash and calculate successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.