home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2005 November / PCWELT_11_2005.ISO / pcwsoft / autoit-v3-setup.exe / Examples / BitNOT.au3 < prev    next >
Encoding:
Text File  |  2004-09-22  |  207 b   |  10 lines

  1.  
  2. $x = BitNot(5)
  3.  
  4. #cs Comments:
  5.     Result is -6 because for 32-bit numbers
  6.     5 == 00000000000000000000000000000101 binary
  7.     -6 == 11111111111111111111111111111010 binary
  8.     and the first bit is signed
  9. #ce
  10.