Bug 381418 - negative results of certain magnitudes have incorrect thousands separators
Summary: negative results of certain magnitudes have incorrect thousands separators
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-19 22:25 UTC by Jason Craig
Modified: 2017-06-22 16:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 17.04.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Craig 2017-06-19 22:25:35 UTC
If you make a calculation that results in a negative number in the hundreds, then a thousands separator (a comma here in the US) is incorrectly displayed at the beginning of the number, right after the minus sign. The same goes for a negative result in the hundred-thousands (and so on I presume).

For example, take 100 and subtract 1000, the result is displayed like "-,900". Or take 50 and subtract 1000000, the result is displayed as "-,999,950".

My version is 17.04.2, but this wasn't available in the version selection.
Comment 1 Christoph Feck 2017-06-21 20:58:34 UTC
https://phabricator.kde.org/D6326
Comment 2 Christoph Feck 2017-06-22 16:22:23 UTC
Git commit 50cfdbb7703ab676498125d1fc8380af910a9f3a by Christoph Feck.
Committed on 22/06/2017 at 16:20.
Pushed by cfeck into branch 'Applications/17.04'.

Fix grouping display with negative numbers
FIXED-IN: 17.04.3

Differential Revision: https://phabricator.kde.org/D6326

M  +10   -1    kcalcdisplay.cpp

https://commits.kde.org/kcalc/50cfdbb7703ab676498125d1fc8380af910a9f3a