Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NUMBER SYSTEM
Decimal Binary Octal Hexadecimal
NUMBER SYSTEMS
A number system is a code that uses symbols to refer to a number of items. In any number system there is an ordered set of symbols known as digits with rules defined for performing arithmetic operations like addition, multiplication etc. A collection of these digits make a number which in general has two parts- integer and fraction.
3
Place Value
Example Place value in the decimal system 648 = 600 + 40 + 8 Hundreds Tens units The digit 6 represents 600 because of its placement 3 positions left of the decimal point. The digit 4 represents 40 because of its placement 2 positions left of the decimal point. The digit 8 represents 8 units because of its placement one position left of the decimal point.
5
(125)10 = (1111101) 2
9
10
11
12
13
16
17
18
19
20
21
22
7.Binary to Hexadecimal
We simply break a binary number into groups of 4 bits and convert each group of 4 bits according to the preceding code. Examples (10111011)2 = (BB)16 (10010101)2= (95)16 (11000111)2= (C7)16
23
8.Hexadecimal to Binary
(ABCD)16=(1010101111001101)2 (2309.7A)16 =(0010001100001001.01111010) 2
24
9.Hexadecimal to Decimal
This is straight forward but time consuming. Example: (BB)16 represents =Bx161+Bx16 =11x16+11x1 =176+11 =(187)10 Similarly (AB6)16=Ax162 + Bx161 + 6x16 =10x256 + 11x16 + 6 =2560 + 176 + 6 =(2742)10
25
26
Note that , there is no direct method for converting Hexadecimal to octal or Octal to Hexadecimal. Therefore first convert Hexadecimal to Binary then Binary To Octal.
27
28
29
BIT
A single binary number (either a 0 or a 1) is called a bit. Bit is an abbreviation for a Binary digit. The bit is the smallest unit of data in a digital system. Physically in a digital circuit a single bit is commonly represented by a HIGH or LOW voltage.
30
BIT
On a magnetic storage medium (such as a floppy disk) a bit is a small section that can be either a 1 or 0. On an optical disk (such as a CD-ROM) a bit is a small area that either is a pit or no pit for a 1 or 0.
31
WORD SIZE
All but the simplest digital devices handle larger data groups commonly called which in computer jargon may be called words. For most computer systems, the width of the main data bus is the same as the word size. For instance, a microprocessor might operate on and store 8-bit groups as a single unit of data.
32
BYTE
An 8-bit group of data that represents a number, letter, punctuation mark, control character, or some operation code (op code) in a digital device is called a byte. For instance, the hexadecimal number 4F is shorthand for the byte 0100 1111. A Byte is an abbreviation for Binary term
33
NIBBLE
A half-byte or a 4-bit group of data is called a nibble. For instance, the hexadecimal number C is shorthand for the nibble 1100.
34