News for hackers. Stuff that matters.
Re:Noise Filtering Using 1€ Filter by echoangle on Monday December 09, 2024 @08:49AM (#42366257)
The title on HN includes „€1“, the original uses the „1€“ (which makes more sense I think, even when considering the reference to $1).
Re:Noise Filtering Using 1€ Filter by wiether on Monday December 09, 2024 @09:58AM (#42366768)
The original algorithm[1] comes from people working at a French university. In France we put the currency directly after the amount, without space : 1€.

[1]: https://gery.casiez.net/1euro/

Re:Noise Filtering Using 1€ Filter by notpushkin on Monday December 09, 2024 @09:08AM (#42366374)
Euro sign can be used before the amount, depending on the language and local norms, although I’ve seen it mostly after, separated by a space (150 €).
Re:Noise Filtering Using 1€ Filter by locallost on Monday December 09, 2024 @09:07AM (#42366367)
In English the currency symbol is typically before the number, whereas especially in Europe (with exceptions e.g. Switzerland) it is typically after the number. The title here is kind of correct in English I'd say, but the author is Dutch who happens to write in English.
Re:Noise Filtering Using 1€ Filter by blainelewis1 on Monday December 09, 2024 @12:11PM (#42368017)
Dan was my masters advisor and he’s Canadian, they used the French “spelling” because it’s a French paper.
Re:Noise Filtering Using 1€ Filter by Leif24 on Monday December 09, 2024 @09:37AM (#42366575)
At least with American currency it varies, e.g. one dollar is $1 while one penny is 1¢.
Re:Noise Filtering Using 1€ Filter by tristor on Monday December 09, 2024 @11:11AM (#42367511)
This actually is useful, because it allows the symbols to visual indicators when reading currency figures and can be used in a programmatic way. $ becomes a start marker for the beginning of a currency figure where the most significant digit is immediately after the marker and anything remaining after flows from that, and the same is true for cents where the symbol acts as an end marker and infers a lower bound. They can almost be thought of as start and end markers in regex, although they are not used together so not exactly that way.

It makes a sort of rational sense, at least to me.

Re:Noise Filtering Using 1€ Filter by dmonitor on Monday December 09, 2024 @11:59AM (#42367919)
The rationale I've always heard for having the $ at the beginning of the number was so that a handwritten value on, say, a check couldn't be modified by sticking a number at the beginning. 1.00$ could be forged into 91.00$, but not so with $1.00.
Re:Noise Filtering Using 1€ Filter by tristor on Monday December 09, 2024 @12:17PM (#42368064)
That rationale makes sense, and pretty much aligns with what I mean by a visual marker.
Re:Noise Filtering Using 1€ Filter by sigio on Monday December 09, 2024 @10:03AM (#42366832)
In the before-times (before the euro), we dutch used to write fl123,45 So putting the euro symbol in front comes naturally.
Re:Noise Filtering Using 1€ Filter by locallost on Monday December 09, 2024 @02:16PM (#42369452)
I wonder if it's because of the proximity to the UK, and that it influenced the choice of where to put it.
Re:Noise Filtering Using 1€ Filter by echoangle on Monday December 09, 2024 @09:40AM (#42366600)
Interesting, I knew that it was written $1 for dollar but thought it depends on the currency, not the language.
Re:Noise Filtering Using 1€ Filter by locallost on Monday December 09, 2024 @10:04AM (#42366838)
My best answer is it depends on the language and country. E.g. Germans will write it after the number, whereas Swiss, who also officially speak German, will write it before the number. And yes, I needed to display some prices on a page recently, that had versions for Germany and Switzerland :-).
Re:Noise Filtering Using 1€ Filter by agmater on Monday December 09, 2024 @09:38AM (#42366579)
In Dutch the currency symbol always comes before the number as well, so this is intentional of the author.
Re:Noise Filtering Using 1€ Filter by locallost on Monday December 09, 2024 @10:00AM (#42366794)
Except he wrote in English, not Dutch :-)
Re:Noise Filtering Using 1€ Filter by agmater on Monday December 09, 2024 @12:51PM (#42368472)
Yes exactly, my point was that it works the same in English and Dutch. But other comments mentioned how its based on a French paper, where they do place the currency after the amount.
Re:Noise Filtering Using 1€ Filter by locallost on Monday December 09, 2024 @02:14PM (#42369423)
Ah, I'm sorry, I totally misread that.
Re:Noise Filtering Using 1€ Filter by dsego on Monday December 09, 2024 @10:02AM (#42366813)
It was moderated I think, the year 2020 was added as well.