Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

There can be only one!

by c-era (Curate)
on May 16, 2000 at 19:07 UTC ( [id://11865]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: RE: There can be only one!
in thread There can be only one!

It shifts bits, not bytes. << moves the bits left and >> moves the bits right.
2<<4 #2 is 00000010 in binary, the <<4 moves the bits left 4,00100000 + which is 32 32>>3 #32 is 00100000 in binary, the >>3 moves the bits right 3, 00000 +100 which is 4
I hope this clears things up.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11865]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2025-07-16 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.