2's complement of COMP fileds
Posted: Tue Jan 18, 2011 12:42 pm
Hi,
for the COMP fields how the negative numbers will be stored in the file.
i have learnt that Most significant will be ON for negative and will be stored in 2's complement form.
Please tell me whether all the bits of that wil be in 2's complement.
For ex: if i am having the COMP fields stored in the file with the hex value 4DE13911.
In this case bin value of 4 is 0100. it means that MSB is 0 and the number is +ve. But my doubt is whether 0100 alone will be stored in 2's complement form or entire value 01001101111000010011100100010001 will be stored in 2's complement.
thanks,
ss
for the COMP fields how the negative numbers will be stored in the file.
i have learnt that Most significant will be ON for negative and will be stored in 2's complement form.
Please tell me whether all the bits of that wil be in 2's complement.
For ex: if i am having the COMP fields stored in the file with the hex value 4DE13911.
In this case bin value of 4 is 0100. it means that MSB is 0 and the number is +ve. But my doubt is whether 0100 alone will be stored in 2's complement form or entire value 01001101111000010011100100010001 will be stored in 2's complement.
thanks,
ss