Bug 491645

Summary: Show thousands separator in calculation result
Product: [Applications] kcalc Reporter: username981618 <jgqehj55>
Component: generalAssignee: Gabriel Barrantes <gabriel.barrantes.dev>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: separator
Thousand separator missing in history pane and after pressing enter

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 ***