View Single Post
  #3   Spotlight this post!  
Unread 29-11-2002, 20:08
Ameya's Avatar
Ameya Ameya is offline
Freelance Goon
FRC #0293 (SPIKE Robotics)
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Pennington, NJ
Posts: 67
Ameya is on a distinguished road
Send a message via ICQ to Ameya Send a message via AIM to Ameya
Two's complement explained:

In an unsigned integer byte, the rightmost bit stands is the 1's place, and each successive bit to the left stands for twice the previous bit's place. There are 8 bits in a byte, so the leftmost bit in an unsigned integer byte is the 128's place. In a signed integer byte, everything is the same except for the leftmost bit, which stands for the opposite of what it does in an unsigned integer (-128 instead of 128).
__________________
Ameya Agaskar
Team 293 alumnus