Comment on Fun fact: you can't upload this image on piefed.social
magiccupcake@lemmy.world 2 weeks agoIf 0/0 < 0 would error?
If 0 < 0 evaluates false
That makes it even worse???
Comment on Fun fact: you can't upload this image on piefed.social
magiccupcake@lemmy.world 2 weeks agoIf 0/0 < 0 would error?
If 0 < 0 evaluates false
That makes it even worse???
BB84@mander.xyz 2 weeks ago
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 2 weeks ago
Here’s recalculate_attitude, line 1268 checks that they have at least made 10 votes.