top of page

Binary and decimal

Binary is a system which simplifies numbers down to ones and zeros. This systems in used for computers or organizing a vast array of items that are different.


The way to convert a number into binary is by dividing it by two. If the number goes into decimals, get rid of it and mark down a 1. If he number is still whole then add a zero. Keep doing this until you get a zero.


This is an example of how to turn a number under 100 into binary form:


It is also possible to convert a binary number back to an integer. For this, a sequence is needed. 128, 64, 32, 16, 8, 4, 2, 1. you list the binary number up and place one number underneath each 1/0. You then cross out all the zeros, and add up all the numbers in the sequence that are left.


This is an example of how to convert a binary number back to an integer:

Binary is very simple, and easy to understand, and will be fun to work with more in the future. I am very excited about using this information in code.

2 views0 comments

Recent Posts

See All
bottom of page