On Fri, 2 May 2014, jim@jpes.com wrote: > > All, > > Would it make sense that... > (1) if the signed and unsigned integers that you are referring to are > 16 bits lets say. > (2) 500 decimal would be represented in 16 bits (Unsigned) as 0000 > 0001 1111 0100 (0x01F4). > (3) -100 decimal would be represented in 16 bits ( Signed ) as 1111 > 1111 1001 1100 (0xFF9C). > 100d =3D 1100100b. as 16 bits it would be 0000000001100100. And > taking the twos compement > would give 1111111110011100 shown above. > > > If the above statements are true, then processing a signed number (Line > 3) as an unsigned number > (Like Line 2) would give the result that -100 would be larger than 500. > > Is this not true? > YES it is true! --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .