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€.
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.
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.
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.
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 :-).
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.