MerginMaps / MerginMaps/mobile
Strange expression evaluation with real numbers
Open
Nobody has claimed this yet.
bug
forms
- Dominant language
- C++
- Stars
- 388
- Forks
- 87
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 20
Description
When we have an expression "real1" + "real2" in the form where real1 and real2 are fields with real numbers
and real1 = -5.1
and real2 = 1.2
the result should be -3.9 but it is -3.899999999999995
For positive numbers, it works correctly and also when real1 = -5.2 or -5.3

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the mobile form expression with real1 = -5.1 and real2 = 1.2, then compare it with the listed positive and other negative values. Trace the real-number expression evaluation path; done means the expression produces the expected -3.9 result without breaking the other cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100