From jacobson@math-cs.cns.uni.edu Fri Jul 7 13:32:37 2006 Date: Fri, 7 Jul 2006 13:32:37 -0500 (CDT) From: Mark Jacobson To: 810-030-01@uni.edu Subject: Converting from base ten to bases 2 through 20... Hi Visual Basic students, http://www.cns.uni.edu/~jacobson/030VB.NET/ConvertToOtherBases.htm http://www.cns.uni.edu/~jacobson/c030NET.html I put the assignment up on the web page. It was handed out in class today, along with some other sheets, but this web page has a more extensive set of directions and some of the code you will need or want to use to help figure out how to express 17 as a single digit if you are working in base 18 or higher. In base 16, ten is A, eleven is B, twelve is C, i.e. 9 = 9 10 = A <-------------- A is the digit for TEN... 11 = B ----- 12 = C 13 = D 14 = E 15 = F 16 = 10 <-------------- F is the digit for FIFTEEN... 17 = 11 ----- 18 = 12 19 = 13 1 sixteen and 3 ones 20 = 14 1 sixteen and 4 ones See also the earlier handout you received, which shows the octal (base 8) and hexadecimal (base 16), as well as the binary digits and conversions. http://www.cns.uni.edu/~jacobson/binary.txt ---------------------------------------------------------------------------- Base 10 Base 2 Base 8 Base 16 Base 10 Base 2 0 0 0 0 0 0000 1 1 1 1 1 0001 2 10 2 2 2 0010 Base 16 = Hexadecimal 3 11 3 3 3 0011 Base 8 = Octal 4 100 4 4 4 0100 Base 2 = Binary 5 101 5 5 5 0101 Base 10 = Decimal 6 110 6 6 6 0110 7 111 7 7 7 0111 8 1000 10 8 8 1000 9 1001 11 9 9 1001 10 1010 12 A 10 1010 11 1011 13 B 11 1011 12 1100 14 C 12 1100 13 1101 15 D 13 1101 14 1110 16 E 14 1110 15 1111 17 F 15 1111 16 10000 20 10 16 10000 ------- ----- ------ ------- ------- ------ Base 10 Base 2 Base 8 Base 16 Base 10 Base 2 ---------------------------------------------------------------------------- Have a good weekend. Only 11 more weeks left of the 100 week class. There are 10 kinds of people in the world. Those who understand binary, and those who don't. http://www.cns.uni.edu/~jacobson/c030NET.html Mark