home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / BitNOT.au3 < prev    next >
Text File  |  2004-09-22  |  207b  |  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.