|
Home : Features : The L-Files : Minifig Maths Advanced |
This page explains about Binary counting - and how to convert numbers from base 2 to base 10.
Step 1: We want to convert 387 into binary. First of all, we draw a table like the one above. Each column is the column to the right of it, multiplied by 2. The highest number we need to go to, is the number just before we get a power of 2 greater than 387. In this, that is 256 (the next number would be 512 and 512>387).
Step 2: Now place a 1 in the first column,
and take the power at the top of the column away from 387. So
Step 3: Next, look for the next column along
which has a number smaller than 131. In this case, that is the next column, 128.
Step 4: Now repeat the process for the rest
of the columns, you will find that you should have a 1 in columns 2 and 1.
Step 5: Finally, fill in all of the blank
columns with 0s. The completed binary number is: Here are some more examples. Try the method above
to test if they are correct. Finally, here is a javascript code to convert numbers from base 10 into binary. |
All content is copyright 2000-2003
to Legoweb. Any queries should be sent by e-mail to webmaster@legoweb.co.uk. |