Bug 491645 - Show thousands separator in calculation result
Summary: Show thousands separator in calculation result
Status: RESOLVED DUPLICATE of bug 488037
Alias: None
Product: kcalc
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Gabriel Barrantes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-12 21:58 UTC by username981618
Modified: 2024-08-16 03:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
separator (55.79 KB, image/png)
2024-08-13 02:11 UTC, Gabriel Barrantes
Details
Thousand separator missing in history pane and after pressing enter (51.84 KB, image/png)
2024-08-13 08:05 UTC, username981618
Details

Note You need to log in before you can comment on or make changes to this bug.
Description username981618 2024-08-12 21:58:29 UTC
I would be nice to have a thousand separator in the calculation results, so for example if you enter 2000000*1000 the result is currently shown as 2000000000 but it would be better to show 2,000,000,000 or 2.000.000.000 depending on regional settings.
Comment 1 Gabriel Barrantes 2024-08-13 02:11:50 UTC
Created attachment 172572 [details]
separator

There is already a separator implemented for the result display, but is not configurable, it should default to whatever is set on your system.
Comment 2 Gabriel Barrantes 2024-08-13 02:15:59 UTC
(In reply to username981618 from comment #0)
> I would be nice to have a thousand separator in the calculation results, so
> for example if you enter 2000000*1000 the result is currently shown as
> 2000000000 but it would be better to show 2,000,000,000 or 2.000.000.000
> depending on regional settings.

Check the locale settings on you system to see if it a separator is set, are you seeing the separator missing on kde? or is it another desktop?
Comment 3 username981618 2024-08-13 08:04:58 UTC
My regional settings are set to the UK which is "1,000.01" so there should be a comma.

I checked kcalc again - it DOES show the separator in the result as I enter my calculation. So I enter "2000000*1000" and it will show "2,000,000,000" below. But then when I press enter to "finish" my calculation the thousand separator disappears again and it's also missing in the history pane on the right
Comment 4 username981618 2024-08-13 08:05:43 UTC
Created attachment 172576 [details]
Thousand separator missing in history pane and after pressing enter
Comment 5 Gabriel Barrantes 2024-08-16 03:00:50 UTC

*** This bug has been marked as a duplicate of bug 488037 ***