in reply to Re^2: Flipping the Sign Bit in pack()'ed Value
in thread Flipping the Sign Bit in pack()'ed Value
ikegami wrote:
With two's complement, flipping the "sign" bit will have the effect of subtracting the max negative value (if 1) or adding the max negative value (if 0).
Yep. I'm looking for a specific effect and when I expanded the test data to 32-bit integers I saw my error right away.
It's painfully obvious I haven't done bit-head work in awhile, and it's also painfully obvious that I've been working in PowerShell too much and not enough Perl for far too long.
I hate to say it, but it's also becoming painfully obvious that my mental faculties are slowing down. Getting old sucks. :-)
I appreciate the help, though. Thank you.
|
|---|