Convert numeric literals to uint objects and output the string representations in base-2 (binary). : Uint : Data Type Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Data Type » Uint »

 

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


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace(new uint(51).toString(2));  // Displays: 110011
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Data Type
» Uint