Difference between revisions of "Lua:bNot"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "<h2>bNot(int) : Binary not</h2> <pre> -- ~1 print( bNot(1) ) -- 2 0001 ----- 1110 </pre>")
 
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
<pre>
 
<pre>
 
-- ~1
 
-- ~1
print( bNot(1) ) -- 2
+
print( bNot(1) ) -- -2
 
+
or
 +
print ( ~1 )
 
0001
 
0001
 
-----
 
-----
 
1110
 
1110
 
</pre>
 
</pre>

Latest revision as of 23:31, 22 February 2021

bNot(int) : Binary not

-- ~1
print( bNot(1) ) -- -2
or
print ( ~1 )
0001
-----
1110