Merge lp:~mcbits/pantheon-calculator/fix-1415049 into lp:~elementary-apps/pantheon-calculator/trunk
Proposed by
James McManus
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~mcbits/pantheon-calculator/fix-1415049 | ||||
Merge into: | lp:~elementary-apps/pantheon-calculator/trunk | ||||
Diff against target: |
18 lines (+7/-1) 1 file modified
src/Core/Evaluation.vala (+7/-1) |
||||
To merge this branch: | bzr merge lp:~mcbits/pantheon-calculator/fix-1415049 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MarkoD (community) | Needs Fixing | ||
elementary Apps team | Pending | ||
Review via email: mp+312514@code.launchpad.net |
Commit message
Fix calculator bug #1415049 where some calculations produce negative 0
Description of the change
Fix calculator bug #1415049 by rounding results to the given precision and ensuring any 0.0 results are positive before formatting for display.
To post a comment you must log in.
Unmerged revisions
- 296. By James McManus <email address hidden>
-
Fix calculator bug #1415049 where some calculations produce negative 0
Looks like with this fix calculator now properly outputs number of decimal places :)
But this also introduces small bug - if d_places is 0 and equation result is "0", calculator will crash in cut() trying to slice radix character off an empty string.