Author |
Message |
Drew
Joined: 25 Jun 2009 Posts: 2
|
|
Challenge 'Didactic Bytes' |
|
I'm apparently having some trouble on Didactic Bytes, I'm going to share my results in case they help indicate where I'm going astray, therefore there may be some spoilers... though my result ends up incorrect so they can't be spoiling too much
I converted 199, 77, and 202 into bytes and got:
199 - 11000111
77 - 01001101
202 - 11001010
then I put them together into a 24 bit long string which looks like this: 110001110100110111001010 (199 then 77 then 202)
I then took that as a single binary number and converted into decimal, and got: 26043146, which is not the answer.
I've double checked all of the math, but apparently I'm missing something?
|
|
Fri Jun 26, 2009 2:14 am |
|
 |
gfoot
Joined: 05 Sep 2007 Posts: 269 Location: Brighton, UK |
|
|
|
Your calculation is wrong. Convert the answer you got back again and see where it fails to match up.
|
|
Fri Jun 26, 2009 2:34 am |
|
 |
Drew
Joined: 25 Jun 2009 Posts: 2
|
|
|
|
Thanks, I guess I need some more practice converting decimal to binary.
|
|
Fri Jun 26, 2009 2:46 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|