this post was submitted on 22 Feb 2025
18 points (95.0% liked)

Linux

50398 readers
818 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I frequently use KRunner to do simple sums when doing my accounting. I keep a ledger with numbers formatted as e.g. 1,000.00. My system settings in KDE for number formatting under Region & Language is set to British English, i.e. the way I want it. However, whenever I copy a sum from KRunner, e.g. "1000.25 + 1000.25", it is copied as "2000,5" (i.e. no thousands-delimiter, wrong decimal point and only one decimal number). It gets a bit annoying to change this manually.

I can't seen to find any specific settings for this in KRunner or the Calculator plugin, and I would expect it to respect KDE's own settings.

Does anyone know how to force KRunner to do my bidding here?

top 4 comments
sorted by: hot top controversial new old
[–] catloaf@lemm.ee 7 points 1 day ago (1 children)

It should respect your region and language settings by default. If it doesn't, file a bug report.

[–] D_Air1@lemmy.ml -1 points 1 day ago* (last edited 1 day ago) (2 children)

Is this actually a bug though? I just don't think krunner or many other calculators for that matter use delimiters anymore. Therefore, the only thing it is changing based on regional settings is the use of the comma or period to denote a decimal.

I could be wrong considering I had a bit of trouble understanding the post. I just bring this up because in American English there are no delimiters for thousands place or above either.

Also I don't see how from this post the decimal point is wrong. Sure it is simplified to one decimal place, but again many calculators do this. Perhaps op simply needs something that provides more fine grained control over number formatting than what krunner is supposed to.

[–] catloaf@lemm.ee 3 points 1 day ago

If that was true, it should be using no delimiters, and therefore still a bug.

Also, American English delimits large numbers like 1,000,000.

[–] cyberwolfie@lemmy.ml 1 points 1 day ago

Therefore, the only thing it is changing based on regional settings is the use of the comma or period to denote a decimal.

Also I don't see how from this post the decimal point is wrong. Sure it is simplified to one decimal place, but again many calculators do this.

It uses a comma instead of a punctuation mark as the decimal point. Default numbers formatting on my system uses a punctuation mark. In other words, it is ignoring my system settings for what numbers should look like.

I could be wrong considering I had a bit of trouble understanding the post. I just bring this up because in American English there are no delimiters for thousands place or above either.

In that case I would expect it to output the numbers without the delimiter. But I have not set the number formatting to American English.