1254
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 27 Jul 2026
1254 points (100.0% liked)
Fediverse
43158 readers
1034 users here now
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, Mbin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Rules
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general Lemmy.world rules.
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)
founded 3 years ago
MODERATORS
That would make sense, but the "+ 1 - 1" both inside the patenethis don't, as he also has the "+ 1" outside. I assume ( making an ass of me along the way) he tried to write the formula you described from memory, but cocked it up a bit.
it's not exactly the formula i posted but the principle is kinda the same
if u see it like this:
the diff is that it's inclusive of max (bc of +1) and it always returns an integer (bc of Math.floor)
btw not defending this abomination of a man in javascript language or anything lol
I can see the logic in that ๐