News for hackers. Stuff that matters.
Re:Curious lack of sprintf scaling by MaxBarraclough on Friday February 25, 2022 @06:36PM (#30473727)
> So PI is not 3.14 but 3,14 instead.

How would you write 3,141.592?

Re:Curious lack of sprintf scaling by j-krieger on Friday February 25, 2022 @06:48PM (#30473827)
3.141,592 - Germany formats numbers that way.
Re:Curious lack of sprintf scaling by pilif on Saturday February 26, 2022 @03:41AM (#30476129)
Here in Switzerland it's even worse because it depends on where in Switzerland you're formatting the number (French parts have different rules from German parts) and whether you're formatting a number as a plain number or a monetary value.

if it's money, you use the . as the decimal separator everywhere. if it's just a number, in the French parts, it's , in the German parts the .

The thousands separator is ' everywhere

Re:Curious lack of sprintf scaling by zmmmmm on Saturday February 26, 2022 @06:23AM (#30476745)
surely this must routinely cause horrific mistakes in things like bank transactions?
Re:Curious lack of sprintf scaling by vidarh on Saturday February 26, 2022 @02:42AM (#30475869)
Norway as well
Re:Curious lack of sprintf scaling by gray_-_wolf on Friday February 25, 2022 @06:51PM (#30473846)
In my country most people do not really use thousands separator, so here it would be either 3141,592 or 3 141,592.
Re:Curious lack of sprintf scaling by throwaway2016a on Friday February 25, 2022 @07:00PM (#30473911)
At least in currencies it is very common to use space as a thousands separator.
Re:Curious lack of sprintf scaling by gumby on Friday February 25, 2022 @08:50PM (#30474592)
Note that some languages don't follow the "break at thousand, million.." pattern, most notably south asian languages that break at the lakh and crore boundaries.
Re:Curious lack of sprintf scaling by hashimotonomora on Friday February 25, 2022 @09:39PM (#30474823)
3141592 thousandths. Integer is beautiful.
Re:Curious lack of sprintf scaling by ur-whale on Friday February 25, 2022 @07:36PM (#30474199)
3'141,592