Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Why are things often numbered with "Zero" first?

  1. #1
    Join Date
    Apr 2009
    Beans
    1,343
    Distro
    Xubuntu

    Why are things often numbered with "Zero" first?

    I guess it is a math/computer thing. I have never studied either in secondary school.

    Examples.

    I have a quad-core CPU.

    Numbers in xfce4-sensors are:

    Core 0
    Core 1
    Core 2
    Core 3

    My hard drive, if I remember properly, always list the first partition as Zero.

    I'm sure I've seen other examples but, you get the idea.

    Why is this?

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Why are things often numbered with "Zero" first?

    Because we Math/computer geeks like to make things confusing so we look smart.

    The reason is the notion of an index. Indexes start at zero. When you "index" something, you are making sure your measurement or what have you starts at 0.

    If you want to read the first line in a file, you have to start at the 0th position to read through and capture the entire line.

    You start at the start or you miss the first thing.
    Last edited by QIII; August 5th, 2015 at 12:06 AM.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Why are things often numbered with "Zero" first?

    Because the set of natural numbers starts with 0 mathematically and "nothing" seems more natural as a start than "one" philosophically.

  4. #4
    Join Date
    Apr 2009
    Beans
    1,343
    Distro
    Xubuntu

    Re: Why are things often numbered with "Zero" first?

    Thanks folks.

    I remember the imbecile grade 9 math teacher we had, early in the year wasting a large part of a class, having each of we students in the class in turn, try to count to ten. Not knowing any better, we all counted I through 10. He gleefully told each one of us we were wrong. (small things amuse small minds). Then, he introduced zero, and let us guess what negative numbers were. We had no idea, what they were of course.

    A few years later, my younger sister was incessantly teased by this guy because she had gone to private school, until grade 12. She had the smarts enough tell our dad. As my sister tells it, dad was out of the house like a shot. The teacher never teased my sister again.

    Why, I remember all this now, after 45 years, I'll never know.
    Last edited by mikodo; August 5th, 2015 at 03:04 AM. Reason: incessantly not insistently

  5. #5
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Why are things often numbered with "Zero" first?

    A two-digit binary number is used to enumerate the CPU's:

    00 Core Number 0
    01 Core Number 1
    10 Core Number 2
    11 Core Number 3

    Binary is represented as 2^1+2^0

    So

    0^1 + 0^0 = 0
    0^1 + 2^0 = 1
    2^1 + 0^1 = 2
    2^1 ^ 2^0 = 3

    Such counting schemes start with 0.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  6. #6
    Join Date
    Apr 2009
    Beans
    1,343
    Distro
    Xubuntu

    Re: Why are things often numbered with "Zero" first?

    Hey.

    Two digit binary counting.

    Instead of "ten" digit decimal counting.

    You sent me on a journey of internet searches.

    Thanks.
    Last edited by mikodo; August 6th, 2015 at 06:01 AM. Reason: Oops! I forgot 0 again. 10 digits in decimal counting not 9.

  7. #7
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Why are things often numbered with "Zero" first?

    because geeks just can't stand it when the last number in binary gets wider.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  8. #8
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Why are things often numbered with "Zero" first?

    Sometimes it's just easier to start with zero. When you're about to go buying your groceries, you start with nothing in your shopping cart, and the bill grows as the adventure in the supermarket happens.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  9. #9
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Why are things often numbered with "Zero" first?

    If you ask a computer programmer how many kids they have and they say one, you know they have two because programmers count from zero.

  10. #10
    Join Date
    Apr 2009
    Beans
    1,343
    Distro
    Xubuntu

    Re: Why are things often numbered with "Zero" first?

    Same for wives/husbands?

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •