Signed and unsigned numbers

Unsigned

  • unsigned numbers : 0 ~ 2^32-1

Signed

  • 양수
    00000000000000000000000000000000(2) = 0(10)
    ...
    01111111111111111111111111111111(2) = 2^31-1(10)
    
  • 음수
    1000000000000000000000000000000000(2) = -2^31
    ...
    1111111111111111111111111111111111(2) = -1
    

convert binary into decimal