You are viewing a single thread.
View all comments View context
2 points

(e.g. $27 000)

Ok so they’re winning $27, but I thought it was filmed in America, not Australia. Shouldn’t that be $27 911?

/s, obviously.

But more seriously, yeah a space is brilliant. But you shouldn’t use U+0020, the space you get when you press spacebar. It’s awkwardly wide for this purpose, and more importantly it can break the number over two lines if it happens to line up that way.

The best alternative is U+202F, which is both narrower and non-breaking. Wikipedia claims that the official SI recommended character for thousands separation is U+2009, the thin but breaking space, but I read their source and did not see this supported. It seemed to just say space, without specifying which type of space. There is of course also U+00A0, the no-break normal-width space. Any of these would be better than U+0020.

The problem is them being difficult to type, which is probably why most people tend towards the comma instead. It’s automatically non-breaking and doesn’t have the awkward wideness of U+0020.

Incidentally, SI specifically allows for either the comma or the point to be used as the decimal separator. As long as the thousands separator is a space, this can introduce no ambiguity.

permalink
report
parent
reply
2 points

Why do you know various space characters…

permalink
report
parent
reply
2 points

Why not?

I didn’t have the specific Unicode codes memorised. Those I found on Wikipedia. But the knowledge that there exist spaces of different sizes and the non-breaking space just comes out of my general interest in computers across the board.

permalink
report
parent
reply
1 point

I assumed you had it all memorized like some kind of warez ASCII NFO creator.

I only have alt-255 whitespace memorized from my ultima7 cheating days

permalink
report
parent
reply
1 point

Yeah, but aint nobody got time for that. Just hit the spacebar.

permalink
report
parent
reply

interestingasfuck

!interestingasfuck@lemm.ee

Create post

Community stats

  • 2.2K

    Monthly active users

  • 111

    Posts

  • 1.6K

    Comments