MerginMaps / MerginMaps/mobile

Strange expression evaluation with real numbers

Open
#2,567 3 comments 0 reactions 0 assignees View on GitHub

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

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.