When I was in 9th grade, I once spent the day going to school with my cousin. At lunchtime, one of her friends was showing off a newfound skill: "I can count to ten in German! Eins, zwei, drei, vier, funf, sechs, sieben, acht, neun, zehn!" "That's nothing," I said, "I can count to ten in binary. 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010!" No one got it. And unfortunately, it seems like binary is also foreign to a lot of software developers as well. What is Binary? Binary is the two-digit radix (or base) system. In the decimal system - what most people use on a daily basis - we use ten different digits (the Arabic numerals 0, 1, 2, 3, 4, 5, 6, 7, 8, 9) to represent number values. Numbers in the rightmost position before the decimal point represent that digit's value multiplied by ten to the zeroth power, and each position to the right increases the power of ten by one. So 12 is actually another way of saying 1*10^1 + 2*10^0; 433 is equi...
Comments
Post a Comment