• Lodra@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      I’m glad I’m not the only one. My son is a year and half old. I’ve been teaching to count on his hand in binary since day 0. He goes wild and celebrates when we reach 31 🙂

      • radix@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        My siblings and I always loved the number 4 because our puritanical mother was so casual about sticking her middle finger out at only that moment. That was just about the most taboo thing we could imagine, and it was as a result hilarious.

  • RacoonVegetable@reddthat.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Jokes on you, I use my fingers as bits for a total of 1024 numbers (0-1023). Or I can sacrifice 1 finger time be a sign bit and count negative numbers too.

  • BorgDrone@lemmy.one
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    10 months ago

    Are you indexing your fingers or counting them ?

    Indexing starts ar 0 but counting starts at 1.

    • FriendOfElphaba@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      This.

      One of the reasons indexing starts at zero is because back when we used to use pointers and memory addresses, the first byte(s) of an array were at the address where the array was stored. Let’s say it is at 1234. If it was an array of bytes, the first data element was at 1234, or 1234 + 0. The second element would be at 1235, or 1234 + 1. So the first element is at location 0 and the second at location 1, where the index is actually just an offset from the base address. There may be other/better reasons, but that’s what I was taught back in the 90s.

      Counting always starts at 1 (if we’re only using integers). You don’t eat a hamburger and say you ate zero hamburgers.