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 } } }