Peter Norton
Numeric Representation of Letters and Digits
In a computer, letters and digits are represented by numeric codes.
Example Code:
A B C D E FG H I J K L M N O P Q
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
R S T U V W X Y Z
18 19 20 21 22 23 24 25 26
What does this say? 8 9 3 12 1 19 19
[pic]
ASCII andEBCDIC
The 2 most common codes used in computers are ASCII (American Standard Code for Information Interchange) and EBCDIC (Extended Binary Coded Decimal Interchange Code). They provide codes forletters, digits, punctuation marks, and other special characters.
Subset of ASCII code:
sp ! " # $ % & ' ( ) * + , -
32 33 34 35 36 37 38 39 40 41 42 43 44 45
. / 0 1 2 34 5 6 7 8 9 : ;
46 47 48 49 50 51 52 53 54 55 56 57 58 59
< = > ? @ A B C D E F G H I
60 61 62 63 64 65 66 67 68 69 70 71 72 73
J K L M N O P Q R S T UV W
74 75 76 77 78 79 80 81 82 83 84 85 86 87
X Y Z [ \ ] ^ _ ` a b c d
88 89 90 91 92 93 94 95 96 97 98 99 100
e f g h i j k l m n
101 102 103 104 105106 107 108 109 110
o p q r s t u v w x
111 112 113 114 115 116 117 118 119 120
y z { | } ~
121 122 123 124 125 126
What does this say? 72 101 108 108 11132 67 108 97 115 115 33
Binary, Octal, and Hexadecimal Representations of Numbers
Digits in base 10 (decimal): 0 1 2 3 4 5 6 7 8 9
Digits in base 16 (hexadecimal):0 1 2 3 4 5 6 7 8 9 A B C D E F
Digits in base 8 (octal): 0 1 2 3 4 5 6 7
Digits in base 2 (binary): 0 1
Counting in Different Bases
What are thenumbers after 9 in base 10?
10 11 12 ... 19 20 21 22 ... 99 100 101 ...
What are the numbers after F in base 16?
10 11 12... 19 1A 1B ... 1F 20 21 22 ... 99...
Regístrate para leer el documento completo.