• Mr. Satan@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    Wouldn’t max value for 8 bit (unsigned) integer be 255? Like the number has 256 distinct values, but that includes 0.

      • khapyman@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        Not to be snarky, in programming there’s rarely (in situations like this) a reason to keep count. Computers are exceptionally good at counting integers so they’d just count individual client id’s (however they’ve implemented that system), not keeping toll on how many clients are in a group chat.

        So one client, be it at position zero is a one client group. Add another client at position one and you have two clients and a two person group.

    • Echo Dot@feddit.uk
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      4 months ago

      Computers start counting at zero, (unless it’s python) so the first person in the group would be ID 0, the second person would be ID 1