Posted By

adrianparr on 03/03/10


Tagged

1 base toString binary convert int 2 as3 0


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tspitzr


AS3 Convert an Integer to Binary Value


 / Published in: ActionScript 3
 

  1. var num:int = 240;
  2. trace(num.toString(2));
  3.  
  4. // OUTPUT: 11110000

Report this snippet  

You need to login to post a comment.