Binary is a system of numerical notation that has 2 as a base, rather than 10 as a base. A binary code represents text or computer processor instructions using the binary number system's two binary digits, 0 and 1. 0 stands for the OFF state, whereas 1 stands for the ON state.
In this course, we learned about binary and how it is used in computers and many different places. Apart from the application, we learned how to write in binary. We learned how to convert binary to a number (decimal) and a number back into binary.
In this course, we learned about binary and how it is used in computers and many different places. Apart from the application, we learned how to write in binary. We learned how to convert binary to a number (decimal) and a number back into binary.
Binary - > Decimal
In order to convert binary to decimal, one must use the base number 2. Binary is written backwards, so the first binary number is to the far right, as 0 is in the example below. You multiply the bit number, by 2^0. For the second bit, or binary number, you multiply it by 2^1. For the third, you multiply it by 2^2, and so on so forth, until the binary number is finished. Once the numbers are found, add them together and you will then find its equivalent in the decimal system.
Decimal -> Binary
Converting Decimal to binary means to take the highest number that works with binary and subtract it. Keep subtracting until you get zero. The numbers that were used to subtract are considered in the ON state and written as 1. The others were not used and considered in the OFF state, and written as 0.