holocast:
...
...
- 97 is the character code of 'a'.
- In binary (base 2) notation, a char being 8 bits : 97 (decimal) is 01100001 (binary).
- In binary, complement to one of 01100001 is 10011110.
- And as char is a signed type binary 10011110 in decimal is -98 (first 1 means it's a negative number so was start from -128, 11110 is 30, -128+30=-98)

Windows-1252 - Wikipedia
- en.wikipedia.org
Windows-1252 MIME / IANA Language(s) Created by Standard Classification Extends Transforms / Encodes It is probably the most-used 8-bit character encoding in the world. As of October 2018[update], 0.7% of all web sites declared use of Windows-1252,[1][2] but at the same time 3.6% used ISO 8859-1,[1] which by HTML5 standards should be...
Alain Verleyen:
Thanks a lot that really cleared things up.
- 97 is the character code of 'a'.
- In binary (base 2) notation, a char being 8 bits : 97 (decimal) is 01100001 (binary).
- In binary, complement to one of 01100001 is 10011110.
- And as char is a signed type binary 10011110 in decimal is -98 (first 1 means it's a negative number so was start from -128, 11110 is 30, -128+30=-98)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Bitwise Operations
Complement to One
Complement of the variable value up to one. The value of the expression contains 1 in all digits where the variable value contains 0, and 0 in all digits where the variable contains 1.
b = ~n;
Example:
char a='a',b;
b=~a;
Print("a = ",a, " b = ",b);
// The result will be:
// a = 97 b = -98