you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 7 months ago (3 children)

not if both upvotes and downvotes are zero ❗️

  • source
  • parent
  • hideshow 3 child comments
  • [–] 22 points 7 months ago (2 children)

    If 0/0 < 0 would error?

    If 0 < 0 evaluates false

    That makes it even worse???

  • source
  • parent
  • hideshow 2 child comments
  • [–] 6 points 7 months ago (1 child)

    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

  • source
  • parent
  • hideshow 1 child comment