http://qs321.pair.com?node_id=11123624


in reply to Flipping partial bits

rickss:

From your description, I'd say that jwkrahn is correct, and that it's essentially the two's complement of a number from -128 to 127. The advantage of two's complement is that addition "just works" and you don't need to do any special logic to handle the sign.

...roboticus

When your only tool is a hammer, all problems look like your thumb.