Advertisement
Anubis_Black

Decimal to Binary

Jan 21st, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.12 KB | None | 0 0
  1.     do
  2.         {
  3.             binary = (number & 1) + binary;
  4.             number >>= 1;
  5.         } while (number != 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement