Convert decimal to binary
Best way to understand it is to use an example. PAY GOOD ATTENTION:
Convert 123 into binary.
We begin by 123 by 2
123/2=61.5 if the division leaves a fraction then, that is a (1.) We drop the fraction and continue to divide by 2, so next we have,
61/2=30.5 again it leaves a fraction, and we have another (1.) We contiue the same,
30/2=15 This time it divides evenly with bo fraction, and that is a( 0) in binary. We continue:
15/2=7.5 It leaves a fraction and that is a (1)
7/2=3.5 same thing here and that is a (1)
3/2=1.5 same thing here and that is a (1)
And the last 1 left comes down as a (1)
So now, we put them ALL in order from the bottom to the top, beginning from the left-hand side as follows: 1111011. That is the binary equivalent of 123 in decimal form.