Chapter 24.2 - Counting on your fingers |
Exercises1. The Martian unit of currency is the pound, & it is divided into sixteen ounces. How would you convert from pounds & ounces to ounces & back again(i) when all the numbers are written in decimal? (ii) when all the numbers are written in hex? 2. How would you convert between decimal & hex? (Hint: exercise 1.) When programs on the ZX81 to convert numerical values into the strings giving their hex representation, & vice versa. (This is what STR$ & VAL do with decimal representations.) 3. Suppose people from Venus have a total of eight fingers, without thumbs, how would their octal (base eight) counting be useful with computers? |