Bitwise Unsigned Right Shift And Assignment Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

This is because -1 decimal is 11111111111111111111111111111111 binary (thirty-two 1s),
and when you shift right (unsigned) by 1 bit, the least significant (rightmost) bit is discarded,
and the most significant (leftmost) bit is filled with a 0. The result is
01111111111111111111111111111111 binary, which represents the 32-bit integer
2147483647.
See also
>>= bitwise right shift and assignment operator
>>>= bitwise unsigned right shift and assignment
operator
expression1 >>>= expression2
Performs an unsigned bitwise right-shift operation and stores the contents as a result in
. The following two statements are equivalent:
expression1
A >>>= B; and A = (A >>> B);
Availability: ActionScript 1.0; Flash Lite 2.0
Operands
expression1 :
Number
expression2 :
Number
Returns
- The result of the bitwise operation.
Number
Example
See also
>>> bitwise unsigned right shift operator
assignment operator
- A number or expression to be shifted right.
- A number or expression that converts to an integer from 0 to 31.
,
>>= bitwise right shift and
Operators
135

Advertisement

Table of Contents
loading

Table of Contents