Thread
:
[INFO] Bitsums and Operators
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
04-19-2009 , 19:11 Re: [INFO] Bitsums and Operators
#
17
Quote:
Originally Posted by
ot_207
The 2 operators have a special meaning!
"<< x" means that a position of a number is moved by x points to
right
! Example:
PHP Code:
"00001100"
<<
1
=
"00011000"
I see bits shifted left.
Quote:
Originally Posted by
ot_207
The >> operator does the same thing like << but moves x points to
left
! When using integer variables the numbers disappear.
PHP Code:
"00000111"
>>
3
=
"00000000"
I see bits shifted right.
__________________
Polymorph
,
GitHub
fysiks
View Public Profile
Send a private message to fysiks
Find More Posts by fysiks