Language:
Contact Us

Search

Notes: Shrish

  • Share this:

26 May 2022:

Assignment :

Decimal, Octal, Hexa and Binary system.

Link for Revising numbering system

Numbering System

 

Class Work:

Decimal system:
Symols : 0 9 = 10 symbols

0 .. 8 9 10

345
5    5 x 10^0
40   4 x 10^1
300  3 x 10 ^2

Octal :
Symbols : 0 ... 6, 7, 10
345(8)
5     5 x 8^0 = 5
4     4 x 8^1 = 32
3     3 x 8^2 = 192 = 229(10)

HexaDecimal : 16
Symbols : 0... 7, 8, 9, A, B, C, D, E, F, 10

345(16)
5    5 x 16^0 = 5
4    4 x 16^1 = 64
3    3 x 16^2 = 768

4A(16) 
A  = 10 x 16^0  = 10
4  = 4 x 16^1   = 64    74(10)

35
A5 

Binary
Symbols : 0 1

1111(2)
1 = 1 x 2^0 = 1
1 = 1 x 2^1 = 2
1 = 1 x 2^2 = 4
1 = 1 x 2^3 = 8

Bit = 0 1   off on
8 bits = Byte
1024 bytes = 1KB
1024 kb = 1 MB
1024 MB = 1 GB
1024 GB = 1 TB

Byte = 0000 0000 = 0    8bits
       1111 1111 = 255
ASCII  0 to 127

9 bits = 512
10       1024
11    2048

UniCode
2 Bytes : 2^16 = 65535


signed bytes
Byte = 000 0000 = 0
       111 1111 = 127
       0 to 127
       -1 to -128
       
       
1
2
4
8

16
32
64
128      0 to 255

       

1 2 4 8 16 32 64 128 256 512 1024 

123456

000 = 0

111 = 1 + 2 + 4 = 7

1111 = 1 + 2 + 4 + 8 = 15

A 3 = 
1111 1111   FF
1111 1111 1111 1111 = FFFF

AB34   
4 = 0100
3 = 0011
B = 1011
A = 1010

FF 
F = 15
F = 15 * 16^1

FFFF
F = 15
F = 15 * 16^1
F = 15 * 16^2
F = 15 * 16^3


41(16)
1 = 1
4 = 64 = 65

61(16)
1
6 = 96 
97

Difference = 32


+32
-32

1 byte =  8 bits = 0 to 255
2 bytes = 16 bits = 65

Raz Manva

Raz Manva