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! While you're at it, check out some resources Treehouse students have shared here.
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 triallil crack
1,732 Pointsi didnt understand te last example
the last example is 8+2 how did the eight come ?
3 Answers
Steve Cameron
3,117 PointsThe value for each position (from right to left) is multiplied by 2.
so the rightmost position counts for 1, the second 2 (1x2), the third 4 (2x2) the fourth 8 (4x2), and so on.. 16, 32, 64, 128
You add the values of every ( 1 ) to get the binary value of the byte.
Alexander Davison
65,469 PointsThis post might help :)
lil crack
1,732 Pointsthnks <3