Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
who knows a easier way to understand binary?
need help with binary
Codin - Codesmite8,600 Points
Imagine Binary as an on off switch for a light bulb.
0 = OFF
1 = ON
So if we were to send the 8bit binary 10110000 to the light bulb switch it would go ON OFF ON ON OFF OFF OFF OFF.
So for example in your PC when binary code is sent to your hardware it is recieving an electrical current turning on and off different parts of the hardware.
Binary numbers are quite easy to remember as:
128 - 64 - 32 - 16 - 8 - 4 - 2 - 1
So for example 10110010:
128 - 64 - 32 - 16 - 8 - 4 - 2 - 1 1 - 0 - 1 - 1 - 0 - 0 - 1 - 0
10110010 = 128 + 32 + 16 + 2 = 178