-123 = 11 1000 0101 [I presume the number 123 is in decimal] First write the positive number in binary using 10 bits (I've split it into groups of 4 bits to make it easier to read): 123 = 00 0111 1011 Convert to 1s complement by inverting all bits (any 0 => 1, any 1 => 0): 00 0111 1011 => 11 1000 0100 Finally add 1 to get 2s complement: 11 1000 0100 + 1 = 11 1000 0101 Thus the 2s complement of the negative number: -123 = 11 1000 0101 This can also be expressed in hexadecimal: -123 = 0x385 Or in octal (easy to convert if the binary number is first written in groups of 3 bits): -123 = 1 110 000 101 = 01605 [I've used C notation for the hexadecimal and octal numbers.]
It is: 123+123 = 246
123 + 123 = 246 poo faces
39, 41, 43 Let x represent the smallest of these numbers. From the problem, we know x+(x+2)+(x+4)=123 Solving for x: 3x+6=123 3x=117 x=117/3=39 So our integers are: 39, 41, 43
1 × 123 = 123 3 × 41 = 123
-123 = 11 1000 0101 [I presume the number 123 is in decimal] First write the positive number in binary using 10 bits (I've split it into groups of 4 bits to make it easier to read): 123 = 00 0111 1011 Convert to 1s complement by inverting all bits (any 0 => 1, any 1 => 0): 00 0111 1011 => 11 1000 0100 Finally add 1 to get 2s complement: 11 1000 0100 + 1 = 11 1000 0101 Thus the 2s complement of the negative number: -123 = 11 1000 0101 This can also be expressed in hexadecimal: -123 = 0x385 Or in octal (easy to convert if the binary number is first written in groups of 3 bits): -123 = 1 110 000 101 = 01605 [I've used C notation for the hexadecimal and octal numbers.]
321
327 degrees (or -33 deg).
The complement of an angle is 90 degrees minus the angle 90-57 = 33 degrees
Two's complement is the normal implementation of signed integers, so just take the negative. int a = 123; int b = -a; /* b now equals -123 */ The actual implementation of two's complement notation is that, to make something negative, simply invert the bits and then add 1. 12310 = 00000000011110112 (using 16 bit notation) Invert and you get 111111111000100. Add one and you get 111111111000101, so... -12310 = 1111111110001012
The supplementary angle of 57 degrees is 123 degrees The complementary angle of 75 degrees is 15 degrees So: 123 minus 15 = 108 degrees
It is: 123+123 = 246
123 + 123 = 246 poo faces
It is 123/1.123, as a fraction is 123/1.
39, 41, 43 Let x represent the smallest of these numbers. From the problem, we know x+(x+2)+(x+4)=123 Solving for x: 3x+6=123 3x=117 x=117/3=39 So our integers are: 39, 41, 43
1 × 123 = 123 3 × 41 = 123
The sum of 123 is 123.