News for hackers. Stuff that matters.
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.