52

If you divide an integer with two over and over again, you will get closer and closer to 0, but you will never reach it.

Kind of the same feeling as watching your rant gain more and more ++'s, but never hitting that magical 300.

Comments
  • 3
    You mean double?

    1.0/2 = 0.5
    (int)0.5 => 0

    ...
  • 0
    Odd integers?
  • 1
    I don't know...
    Say 5, the integer
    5/2 = 2
    2/2 = 1
    1/2 = 0

    I'm pretty sure you always get to 0. In log(n) efficiency at that!
  • 2
    Conceptual integer, not computer integer.
  • 1
    What about zero itself? It's an integer and neither gets closer to zero on division and immediately reaches it.
  • 1
    I think the original paradoxes of this were by a Greek guy. Zeno, if I remember correctly. Interesting stuff :)
  • 0
    Pretty sure even integers can be divided by 2 continually until it reaches 0
  • 0
    @moagggi as another user pointed out - conceptual integer. Let's just say "number" instead
  • 0
    Unless you take quantum mechanics into account. Max Planck taught us that all energy is quantized, it can only take certain values.
  • 0
    When I joined you got a stress ball at 75 😝
  • 0
    @simeg Yeah me too I believe.. but I have always lacked 10-20%
Add Comment