Using Bitwise NOT : Bitwise Operators : Language Flash / Flex / ActionScript examples


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

 

Using Bitwise NOT


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var x:Number = ~6;
        
        trace(x);  //-7
        
        x = -(6+1);
        
        trace(x);  //-7
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Bitwise Operators