let's see how to read binary numbers. it's not hard. here's a simple algorithm for performing the conversion. an algorithm is a step-by-step process and we're going to be
How To Add Binary Fractions, studying algorithms later on in the course. so i'm not even going to define the term for now. i'm just going to show you some examples, starting with this example.
so let's convert binary 10101 into decimal. step 1: write the binary number with some spaces between its digits. so, i've written 1 0 1 0 1 in the right column. step 2: write the binary place values above the number, going right to left. so, we start with the 1s place. then there's the 2s place, 2 times 1. then the 4s place, the 8s place, and the 16s place. each place, going right to left, is twice the value of the place to its right.
next, add up all the place values that have a 1 underneath them. in this case, the 16s place, the 4s place, and the 1s place have 1s [underneath them]. so we [them] add up 16 and 4 and 1 and that gives us 21. and that's the result. that's the value of 10101 in decimal. now that wasn't hard, was it.
No comments:
Post a Comment