title: In Signed Primitives is 0 Positive or Negative (or both)?
body: <p>I was reading this page on the "Code Ranch" which talks about variables.</p>
  
  <p>It was discussing "signed primitives," and was saying that 0 is counted as a negative???  </p>
  
  <p>I always thought 0 was positive in these cases?</p>
  
  <blockquote>
    <p>All of these integer types are SIGNED. The leftmost bit represents the sign (positive or negative) and is NOT part of the value. So with a byte, for instance, you don't get the whole 8 bits to represent your value. You get 7. This gives you a range, for bytes, of :
    (-2 to the 7th) through (2 to the 7th) -1. Why that little -1 on the end? Because zero is in there, and zero counts as negative. Works the same way with the others.</p>
    
    <p><a href="http://www.javaranch.com/campfire/StoryCups.jsp" rel="nofollow noreferrer">http://www.javaranch.com/campfire/StoryCups.jsp</a></p>
  </blockquote>
  
  <p>But when looking at this post <a href="https://stackoverflow.com/questions/3621067/why-is-the-range-of-bytes-128-to-127-in-java">Why is the range of bytes -128 to 127 in Java?</a></p>
  
  <p>One comment mentions "0 is positive by default."  It also talks about "Two's Compliment," and mentions anything with a '1' in the left-most bit would be "negative," which 0 doesn't have that....</p>
  
  <p>Also, if 0 was negative -128 to 0 is 129 negatives, with 127 positives, which doesn't make sense....</p>
  
  <p>So I'm curious if this is an error, or if 0 is negative, and why?</p>
  
  <p>Also, I was reading this thread <a href="https://stackoverflow.com/questions/6724031/how-can-a-primitive-float-value-be-0-0-what-does-that-mean">How can a primitive float value be -0.0? What does that mean?</a></p>
  
  <p>That was talking about a float with value of -0.0, and adding a '0.0' to it in order to make it a "neutral/positive" 0.0....</p>
  
  <p>So I'm curious if both positive and negative zeroes exist in floats, or does it exist in both floating point and integer primitives?????</p>
  
  <p>Also, when I was Googling answers for this, mention of "Zero being neither positive-negative/ being both positive-negative...."  Curious if/when this applies in our languages?</p>
  
  <p>Thanks</p>