package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var nInstance:Number = new Number(11); var nVal:Number = new Number(123); trace(nVal.toString(16)); // Displays: 7b } } }