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
/
BitShift.au3
< prev
next >
Wrap
Text File
|
2004-09-22
|
304b
|
10 lines
$x = BitShift(14, 2)
; x == 3 because 1110b right-shifted twice is 11b == 3
$y = BitShift(14, -2)
; y == 48 because 1110b left-shifted twice is 111000b == 56
$z = BitShift( 1, -31)
; z == -2147483648 because in 2's-complement notation, the
; 32nd digit from the right has a negative sign.