Using Bitwise Right Shift : Bitwise Operators : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Bitwise Operators »

 

Using Bitwise Right Shift


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var x:Number = 12;
        var y:Number = x >> 2;
        
        trace(y)//3
        
        //x      0000 0000 0000 0000 0000 0000 0000 1100 
        //y      0000 0000 0000 0000 0000 0000 0000 0011 

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Language
» Bitwise Operators