i was told some thing else..
is it ok???
" Ones complement and twos complement are methods of representing negative numbers. Therefore, they don't affect positive numbers.
To represent a negative number in ones complement, the positive value simply has all its bits inverted. Example: to represent -25 in ones complement, take the binary representation of +25 which is 00011001, then invert the bits: 11100110. Done.
To represent a negative number in twos complement, take the ones complement from the previous example, and add one to it: 11100110 + 00000001 = 11100111
"