Posted By

soundstep on 09/23/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

letmein_xxi


Binary to Decimal and Decimal to Binary


 / Published in: ActionScript 3
 

  1. // Decimal = 7, Binary = 111
  2. uint(7).toString(2); // return 111
  3. parseInt(String(111), 2); // return 7

Report this snippet  

You need to login to post a comment.