View Single Post
Old
  (#13)
BrianG
RC-Monster Admin
 
BrianG's Avatar
 
Offline
Posts: 14,609
Join Date: Nov 2005
Location: Des Moines, IA
10.15.2008, 01:25 AM

Quote:
Originally Posted by kulangflow View Post
Wouldn't a bunch of 1's be a negative number because of the leading 1?
Not necessarily. Most of the time you deal with positive bits (after all, how can you have -on, off, on?) so you'll have a sets of 4 binary bits to easily represented via Hex. If you have a fifth bit, the most significant bit could be used to represent positive and negative, or just a fifth bit if 16 is not enough. So, 5 bits could be used to represent -16 to 16, or 0 to 31, depending on the application. Either way, the range is the same (32).

Nice try though.
  Send a message via Yahoo to BrianG Send a message via MSN to BrianG  
Reply With Quote