Parse the numbers from the string in base-2 (binary) : ParseInt : Data Type Flash / Flex / ActionScript examples


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

 

Parse the numbers from the string in base-2 (binary)


 

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

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Data Type
» ParseInt