AS3 Convert an Integer to Binary Value


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var num:int = 240;
  2. trace(num.toString(2));
  3.  
  4. // OUTPUT: 11110000

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.