0

What are these double lesser than symbols. I've had to use them but I have no idea what they are. It seems to be comparing just like the == but I've never heard of it before. Thanks for any help.

Pshemo
  • 118,400
  • 24
  • 176
  • 257
Fool
  • 117
  • 1
  • 8
  • Aren't you aware of bitwise operations? Also, like `==`? Just the use of them should have told you otherwise. – fge Feb 26 '16 at 01:00

1 Answers1

0
<< (left shift)

Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.

Example: Lets say A = 60. So,

A = ...000111100

A << 2 will give

A = ...011110000

which in decimal is 240.

Look at this example to learn more.

Pshemo
  • 118,400
  • 24
  • 176
  • 257
Faraz
  • 5,467
  • 5
  • 22
  • 73