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


You need to login to view comments.