Difference between revisions of "Lua:bNot"

From Cheat Engine
Jump to navigation Jump to search
 
Line 3: Line 3:
 
-- ~1
 
-- ~1
 
print( bNot(1) ) -- -2
 
print( bNot(1) ) -- -2
 
+
or
 +
print ( ~1 )
 
0001
 
0001
 
-----
 
-----
 
1110
 
1110
 
</pre>
 
</pre>

Latest revision as of 19:31, 22 February 2021

bNot(int) : Binary not

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