Skip to content

Instantly share code, notes, and snippets.

@rbe
Created August 25, 2012 12:00
Show Gist options
  • Select an option

  • Save rbe/3464508 to your computer and use it in GitHub Desktop.

Select an option

Save rbe/3464508 to your computer and use it in GitHub Desktop.
Number 5 in binary representation
128 64 32 16 8 4 2 1
====================
0 0 0 0 0 1 0 1
0 * 128
+ 0 * 64
+ 0 * 32
+ 0 * 16
+ 0 * 8
+ 1 * 4
+ 0 * 2
+ 1 * 1
= 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment