logoalt Hacker News

Leif2412/09/20241 replyview on HN

At least with American currency it varies, e.g. one dollar is $1 while one penny is 1¢.


Replies

tristor12/09/2024

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.

show 1 reply