View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-19-2009 , 19:11   Re: [INFO] Bitsums and Operators
Reply With Quote #17

Quote:
Originally Posted by ot_207 View Post
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" << "00011000" 
I see bits shifted left.


Quote:
Originally Posted by ot_207 View Post
The >> operator does the same thing like << but moves x points to left! When using integer variables the numbers disappear.
PHP Code:
"00000111" >> "00000000" 
I see bits shifted right.
__________________
fysiks is offline