|
|
|
Other Bases
There are two other bases used in computers. They are hexadecimal
and octal. Here is a brief description of each base.
! Reminder: Don’t forget to try out
the Java base calculator designed by the creators of this site. Go
here to be amazed.
Hexadecimal
Hexadecimal is a 16-bit numbering system. If you ever look
at the machine code for a computer program, you will often see hexadecimal
numbers, rather than the binary number. The reason is simple. Say you were
trying to represent 12 in binary and hexadecimal. In hexadecimal, C represents
the number, whereas in binary it is 1100. The mere space usage of each
number is evident.
Hexadecimal is used to represent machine language for the computer
and to represent colors. If you ever work with HTML, you will learn that
instead of entering in a color name, a hexadecimal number is often entered.
Octal
Octal is an 8-bit numbering system. It is rarely used for common
purposes, but occasionally you will find a need for it.
Here is a small table representing the first 15 figures of
the 3 bases we have discussed.
|
Decimal
|
Binary
|
Octal
|
Hexadecimal
|
|
1
|
0001
|
1
|
1
|
|
2
|
0010
|
2
|
2
|
|
3
|
0011
|
3
|
3
|
|
4
|
0100
|
4
|
4
|
|
5
|
0101
|
5
|
5
|
|
6
|
0110
|
6
|
6
|
|
7
|
0111
|
7
|
7
|
|
8
|
1000
|
10
|
8
|
|
9
|
1001
|
11
|
9
|
|
10
|
1010
|
12
|
A
|
|
11
|
1011
|
13
|
B
|
|
12
|
1100
|
14
|
C
|
|
13
|
1101
|
15
|
D
|
|
14
|
1110
|
16
|
E
|
|
15
|
1111
|
17
|
F
|
! Reminder: Don’t forget to try out the Java
base calculator designed by the creators of this site. Go
here to be amazed.
So what good is all this base stuff anyway? Well, it is used to form
the data on the computer. What is Data? Well find out in the next section
on Data.

|
Search | Site
Map | Email (link disabled) | Forums
Main | Past
| Present | Future | Interviews
|
Java | About Us
All material and images on these pages are copyright Joseph,Ed. This page was developed for the Thinkquest1999
competition.
 |
|
 |