this post was submitted on 28 Jan 2026
196 points (96.2% liked)

Fediverse

39833 readers
1287 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

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] BB84@mander.xyz 13 points 1 week ago (1 children)

not if both upvotes and downvotes are zero ❗️

[–] magiccupcake@lemmy.world 22 points 1 week ago (1 children)

If 0/0 < 0 would error?

If 0 < 0 evaluates false

That makes it even worse???

[–] BB84@mander.xyz 6 points 6 days ago (1 children)

Usually 0/0=NaN and NaN compared with a number would be false.

Maybe the (up-down)/(up+down) is just what AmazingWizard summarized from the code. But from what we have seen of the quality of that codebase I won't be surprised if it's literally this expression, division by zero and all. Lol

[–] Edie@lemmy.ml 4 points 5 days ago* (last edited 5 days ago)

The (upvotes cast - downvotes cast) / (upvotes + downvotes) is what the code itself says

Here's recalculate_attitude, line 1268 checks that they have at least made 10 votes.