Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Flipping partial bits

by roboticus (Chancellor)
on Nov 12, 2020 at 20:55 UTC ( #11123624=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123624]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2021-01-27 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?