Using the Shift Operators
Keywords: Shift Operators
Question:
Does any one have an example of the correct use of >> and << operators? I have not found any doing searches on the various help files.Answer:
Well you have to understand the binary representation of numbers.Basically each shift left for small numbers will multiply it by 2, and a shift right will divide it by 2.
a = 6 b = 3 ; this is a times 2x2x2 c= 6 << b Message("Result is",c)
Article ID: W14624Filename: Shift Operators.txt