[erlang-questions] unary bitwise not
YC
yinso.chen@REDACTED
Thu Mar 5 00:28:25 CET 2009
On Wed, Mar 4, 2009 at 3:06 PM, alekciy <public-mail@REDACTED> wrote:
> Why
> 1> bnot 153.
> -154
> ?
>
> I think 153 in binary 10011001 and after inverse = 01100110 = 102 in
> decimal. Why in -154?
>
> 01100110+1?
>
http://en.wikipedia.org/wiki/Two's_complement
Cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090304/74455df8/attachment.htm>
More information about the erlang-questions
mailing list