10-21-2005 11:37 AM
10-21-2005 12:19 PM
10-21-2005 12:25 PM
10-24-2005 11:30 AM
If I remember my maths correctly (its been a while...) you obtain the 2's complement of a number by first taking the 1's complement and then adding 1. So, in C:
int number;
int complement_2;
complement_2 = ~number + 1;
JR
10-24-2005 12:40 PM
Thanks for all your replys, after 5 years not touching C & CVI, I'm rusted... Your helps really put me back to programming mode. Thanks.
FerroK