Binary to Decimal and Decimal to Binary


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



Copy this code and paste it in your HTML
  1. // Decimal = 7, Binary = 111
  2. uint(7).toString(2); // return 111
  3. parseInt(String(111), 2); // return 7

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.