ā11-25-2005 05:39 AM
Sorry about that...
I think this one should work:
ā11-25-2005 06:29 AM
ā11-25-2005 10:20 AM
ā11-28-2005 02:29 PM
ā11-28-2005 02:31 PM
ā01-23-2018 06:19 AM
Nice but you did not drop the sign bit
ā01-23-2018 06:50 AM
ā01-24-2018 04:37 AM
my two cents to raise the thread from the dead
works for arbitrary bit sizes
ā01-25-2018 06:46 AM
I have attached a 12 bit 2s complement I used for temperature senor TMP100. The Negative numbers are represented in binary twos complement format and has a resolution of .0625C per count.
ā01-25-2018 07:14 AM - edited ā01-25-2018 07:28 AM
Is this the same result? No, not exactly.
It's the same except for 0x800, that value (-0?) gives a bad result.