Number System
Number System
NUMBER SYSTEM
BASE NO. 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 NAME Binary Ternary Quarternary Quinnary Senary Septary Octal Nonary Decimal Undinary Duadenary Trendary Quadtrodenary Quindenary Hexadecimal
0110
0111 1000 1001 1010 1011 1100 1101 1110 1111
6
7 10 11 12 13 14 15 16 17
6
7 8 9 A B C D E F
6
7 8 9 10 11 12 13 14 15
Number Systems
Decimal, Binary, Octal and Hexadecimal Numeric Systems.
Example: 523410
102 = 100 = 2 3
101 = 10 1 4
Ex:
1010112
Ex:
1010112 25 24 23 22 21
positional powers of 2: 20
2 1
binary number:
32 + 8 +
1
2 +
1 1
1 = 4310
Ex 1:
5610
1110002
2 ) 56 Rem: 2 ) 28 0 2 ) 14 0 2) 7 0 2) 3 1 2) 1 1 0 1
Ex: Find the binary ASCII and decimal ASCII values for the & character.
Rightmost Four Bits 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 000 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI 001 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US Leftmost Three Bits 010 011 100 Space 0 @ ! 1 A " 2 B # 3 C $ 4 D % 5 E & 6 F ' 7 G ( 8 H ) 9 I * : J + ; K , < L = M . > N / ? O 101 P Q R S T U V W X Y Z [ \ ] ^ _ 110 ` a b c d e f g h I j k l m n o 111 p q r s t u v w x y z { | } ~ DEL
Character Representation
Ex:
12468
81 80 8 1 4 6 67810
positional powers of 8: 8 3 82 decimal positional value: 512 64 Octal number: 1 2 512 + 128 + 32 + 6 =
Ex:
103528
83 80 value: number: 84
you reach zero, and then collect the remainders in reverse. Ex 1: 433010 = 103528
8 ) 4330 8) 8) 8) 8) 0 Rem: 541 2 67 8 1 1
5 3 0
To convert to base 10, beginning with the rightmost digit multiply each nth digit by 16(n-1), and add all of the results together.
Ex:
1F416
positional powers of 16: 163 162 161 160 decimal positional value: 4096 256 16 1 Hexadecimal number: 1 F 4 256 + 240 + 4 = 50010
Ex:
7E16
163 162 160 value:
The Division Method. Divide by 16 until you reach zero, and then collect the remainders in reverse. Ex 1: 12610 = 7E16
16) 126 16) 7 0 Rem: 14=E 7
i.e. using 3 bits we can represent values from 0 7 which are the digits of the Octal numbering system.
Thus, three binary digits can be converted to one octal digit and visa versa.
Ex Convert 7 4 2
:
7428 =
2
= = =
Ex Convert
: 101001102 =
8
= =
= 2
6 4
101001102 = 2468
:
101001102 =
16
= =
6 A
101001102 = A616
To convert between Octal to Hexadecimal numbering systems and visa versa convert from one system to binary first then convert from binary to the new numbering system
Ex
Convert E8A16 1110 1000 111 010 001 010 bits) =
:
8
10102 (group by 3
7
E8A16
2
=
2
72178
Ex
Convert 111 7528 101 = 0102 0001 1 7528 (group 1110 E = 1010 A by 4
:
16
bits)
1EA16