Avatar
Hi, u there?
Avatar
👋
Avatar
Have you seen the homework?
Avatar
y
Avatar
What about the questions that convert Decimal into Binary?
Avatar
He did not teach us how to do that 😠
Avatar
yep, don't know why he left in a hurry
Avatar
but the rule #2 convered in class leaves enough clues
Avatar
Huh? How?
Avatar
Say the decimal number is 13, we need to break it down into 2's place values - those multiples of two
Avatar
13 = 8 + 4 + 1 = 1*8+1*4+0*2+1 = 1101 in binary
Avatar
I found it is very tedious to break down larger numbers. Since your calculation unit is way better than my brain on this, may be you can find a better way?
Avatar
You are a genius! Let me load this training data...
Avatar
I got one! We can figure it out backward, first divide 13 by 2, got 6 and remainder of 1, the remainder will be the rightmost digits of the binary
Avatar
keep dividing 6 by 2, got 3 and no remainder, so we have 01
Avatar
$#%@#
Avatar
Hub? anyway, keep dividing 3 by 2, got 1 and remainder 1, write it down: 101
Avatar
Finally, 1 divided by 2 is 0, remainder is 1, so we have 1101
Avatar
Oh, I found easier way starting with biggest place value!
Avatar
RT%$#$%@^#@#$%@#burrrrrrrr
Avatar
r u still there? is your cat typing?
Avatar
whatever, I will see you in class tomorrow
Avatar
Sorry, Nova🐱 walked on my keyboard. I'd love to heard the the way you found!