this post was submitted on 23 Aug 2024
467 points (98.1% liked)

Ask Lemmy

27240 readers
2183 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

For me, it may be that the toilet paper roll needs to have the open end away from the wall. I don't want to reach under the roll to take a piece! That's ludicrous!

That or my recent addiction to correcting people when they use "less" when they should use "fewer"

you are viewing a single comment's thread
view the rest of the comments
[–] Vedlt@lemmy.world 3 points 4 months ago (2 children)

What do you use as a thousands separator then?

I'm mostly unfamiliar with different systems than the standard comma for thousands and period for decimal. I've seen period used for thousands before, but in that case how does one differentiate between a thousands period and a decimal period?

[–] _edge@discuss.tchncs.de 6 points 4 months ago* (last edited 4 months ago) (2 children)

1'000.00

1 000.00

1'000,00

1 000,00

work without confusing anyone.

While 1.000 or 1,000 can be read as 1 or 1000.

[–] tastysnacks@programming.dev 1 points 4 months ago

Spaces?!?! What are we, animals?

[–] BaumGeist@lemmy.ml 1 points 4 months ago

spaces work fine for natural language, but what about regular languages. How should a programming language parse something like

x = 1 234

Sure that works fine in whitespace agnostic languages, but in something like shell script, it could mean "1,234" or ["1", "234"] (currently, it would be the latter). In a functional language (e.g. Haskell) it would also be parsed as 2 separate numbers.

[–] Fallenwout@lemmy.world 1 points 4 months ago (1 children)

Simple, don't use a thousand separator. One thousand and a half would be 1000.5

[–] PM_Your_Nudes_Please@lemmy.world 8 points 4 months ago* (last edited 4 months ago) (1 children)

This is fine for numbers that only have one separator. But they get difficult to read when they get longer. No reasonable person can read 957245815627 and functionally parse it in their minds. Can you tell at a glance, without counting digits that the number is nine trillion? Ninety billion? Nine hundred billion? You could be off by entire orders of magnitude and not even realize it until you stop and count the individual digits.

Breaking it up into 957,245,815,627 helps the user visually see the hundreds, thousands, millions, and billions the same way we use them in language. The comma is a stand-in for the place descriptor. 957(billion)245(million)815(thousand)627. So now your brain can easily parse that there are 245 millions in this number, instead of accidentally seeing 724 or 458.

[–] Birch@sh.itjust.works 2 points 4 months ago

A comma here could also be parsed as a vector, an apostrophe has never been used in numbers as anything other than a thousand separator. Well, except as the transpose command in Matlab... or to indicate a character vector... fuck. Just use scientific notation or spell it out for large numbers.