514
submitted 1 week ago* (last edited 1 week ago) by Blaze@sopuli.xyz to c/interestingasfuck@lemm.ee
you are viewing a single comment's thread
view the rest of the comments
[-] warm@kbin.earth 15 points 1 week ago

If we are being pedantic, technically you should use a space to separate the thousands (e.g. $27 000), as this avoids the ambiguity.

If we ignore that and only focus on comma (,) and period (.) decimal notations, then period for decimals would win out, as the larger majority of the world population use it. So $27,000.00 would be the correct way.

But until the whole world agrees on one, we are stuck with multiple, so you can just rub your two brain cells together and realise that the 3 trailing zeroes probably mean it is in the thousands (along with the rest of the context).

(no shade at the original comment, which was clearly tongue in cheek, idk why it is downvoted lol it was funny)

[-] kungen@feddit.nu 6 points 1 week ago* (last edited 1 week ago)

technically you should use a space to separate the thousands (e.g. $27 000), as this avoids the ambiguity

But who has time for &nbsp in their lives?

[-] warm@kbin.earth 4 points 1 week ago

A comma it is then :D

[-] Zagorath@aussie.zone 2 points 1 week ago

(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.

[-] Fiivemacs@lemmy.ca 2 points 1 week ago

Why do you know various space characters..

[-] Zagorath@aussie.zone 2 points 1 week ago

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.

[-] Fiivemacs@lemmy.ca 1 points 1 week ago

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

[-] Zagorath@aussie.zone 2 points 1 week ago

I have a few alt codes memorised, but not very many. 0151 and 0150 are — and – (em and en dash) respectively 8230 is ellipsis, except for some reason that doesn't work in all applications, including web browsers.

255 is apparently the non-breaking space, so same as U+00A0 mentioned above. It can also be written in some websites (including here) with  . Like this.

[-] warm@kbin.earth 1 points 1 week ago

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

[-] BlackLaZoR@fedia.io -1 points 1 week ago

If we are being pedantic, technically you should use a space to separate the thousands

Exactly. Space doesn't introduce confusion no matter what sign is used as decimal separator. It's a such a simple, elegant solution, world would be a better place if people were acrually using it.

this post was submitted on 05 Sep 2024
514 points (98.3% liked)

interestingasfuck

1237 readers
1 users here now

founded 1 year ago
MODERATORS