Convert numeric literals to uint objects and output the string representations in base-16 (hexadecimal) format. : uint « Data Type « Flash / Flex / ActionScript






Convert numeric literals to uint objects and output the string representations in base-16 (hexadecimal) format.

 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace(new uint(25).toString(16)); // Displays: 19
    }
  }
}
        








Related examples in the same category

1.Convert numeric literals to uint objects and output the string representations in base-2 (binary).