Number to Binary Conversion

by Renanmbs in Workshop > Science

433 Views, 1 Favorites, 0 Comments

Number to Binary Conversion

what-is-binary-and-how-does-it-work-4692749-1-1eaec2e636424e71bb35419ef8d5005b.png

With this instructable, you will be able to transform any number into a binary number, which is used in computers and electronics

  • The steps are in italic
  • If it is in bold, it is what I did with my number to help you seeing how it works

Gathering What You Need

83748359_2996598057017372_2168011573040250880_n.jpg

Grab a calculator, something to write with and somewhere to write on

I chose a pen and notebook

The Chosen Number

83873857_816894918787089_6635084487833157632_n.jpg

Think of any number that you want to convert into binary, or ask someone for a random number

I chose 456

Follow the Sequence

84407282_128745368351091_6458259266917629952_n.jpg

Make a sequence of 2 elevated from 0-10 and circle the highest number that fits into your chosen number as base – keep sequence going longer if the number wanted is larger than 1024 (2^10)

Since my number was 456, 512 is too big, so I had to choose 256 as my base number

Simple Math

84126142_259986398315072_2347385161261252608_n.jpg

Subtract your chosen number by your base number and put a 1 on the side

Mine was 456 – 256 = 200 and a 1 on the side

Keep It Going

83978380_174793100446120_3714002866759794688_n.jpg

Now with the result of the subtraction, follow to the next number in the sequence, see if you can subtract the result by the following number. If so, subtract it and set another 1 aside, if you can’t, set a 0 aside

Next number in the sequence was 128, so 200 – 128 = 72 with a 1 on the side

One More Time

84280156_188640135873693_3512776416217268224_n.jpg

Do the same thing with the next number from the sequence

Next number in the sequence was 64, 72 – 64 = 08, and a 1 on the side

Not Done Yet

84969627_541002183502813_8683496902605406208_n.jpg

If the next number on the sequence doesn’t fit in the result, set a 0 aside and move to the next number

Next number in the sequence was 32, 32 is bigger than 8, so set a 0 aside and move to the next

Almost There

84154603_1465977033569473_316031368746237952_n.jpg

Keep going on the sequence until you find a number that “fits” into your result

Next number in the sequence was 16, 16 is bigger than 8, so set a 0 aside and move to the next

The Wanted Result

84257211_585553005329933_3263809574523633664_n.jpg

Subtract the result by the next number in the result, if the result becomes 0, then you are done, if there are still another number as result, keep it going

Next number in the sequence was 8, 8 – 8 = 0, so I was done

Fill the Gaps

84214274_128149431774643_5552320028465954816_n.jpg

If there are unused numbers left in the sequence, fill it up with 0s

4 (2^2), 2 (2^1) and 1 (2^0) were left unused so I filled them up by 0s in the end

Final Answer in Binary

83436413_2655778304518393_5564331561639215104_n.jpg

Get your result in binary

My chosen number (456) in binary is 111001000