Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Binary Arithmetic
Conversion of binary , octal and hexadecimal to
decimal number
Conversion of decimal to binary, octal and
hexadecimal number.
Conversion of binary to Decimal number , octal
number and hexadecimal number.
Addition , subtraction and multiplication of binary
numbers .
start
010
001
100
4
101 001
= 214518
010
001
100
101
001
Hexadecimal System
Sometimes, it is necessary to use a numbering
system that has more than ten base digits
One such numbering system, hexadecimal, is
useful on the Web
Hexadecimal number, a Base-16 numbering
system, is used in specifying web colors
12
0.0625
2X0.0625
0.1250
.0
0.1250
2X0.125
0.250
.00
0.250
2X0.25
0.5
.000
0.5
2X0.25
1.0
.0001
0.062510 = .00012
integer
17
Fraction
Product with
Base
New fraction
integer
0.0625
8X0.0625
0.5000
.0
0.5
8X0.5
4. 0
.04
Fraction
Product with
Base
New fraction
0.0625
16X0.0625
1.0000
0.062510 = .048
integer
.1
0.062510 = .116
18
Quotient
Remainder
Hex Number
1967/8
245
245/8
30
37
30/8
376
3/8
3637
(1967)10=
(3537)8
0.062510 = .048
(1967.0626)10= (3637.04)198
Binary Addition
0+0=0
0+1=1
1+0=1
1 + 1 = 10
10
20
0*0=0
0*1=0
1*0=0
1*1=1
21
1111 carry
111101
100111+
1100100
1 1 1 (carry)
01101
1 0 1 1 1+
------------100100
22
1 0 1 1
1 0 1 0
--------------0 0 0 0
1 0 1 1
0 0 0 0
+1 0 1 1
-----------------1 1 01 1 1 0
23
Multiply Example
1 1 0 1 1 1
1 1 1
1 1 0 1 1 1
1 1 0 1 1 1
1 1 0 1 1 1
-----------------------------------1 0 1 1 1 1 0 1 1
24