Pages

Friday 11 April 2014

ADDITION AND SUBTRACTION OF Hexadecimal Numbers

ADDITION

START adding digits from right to left i.e. from LSB(Least significant digit) to MSB(Most significant digit)
  •      If the result is less then 16 write the digit as it is
  •      If the result is >=16 subtract 16 from it to get the digit and carry 1 to next digit    for e.g. Let's add C59A  and 68F1






SUBTRACTION

START subtracting digits from right to left i.e. from LSB(Least significant digit) to MSB(Most significant digit)
  •      If the second digit is greater than first digit burrow 16 from preceding digit
  •        for e.g. Let's add C59A  and 68F1  
    Try your self ADD DE67 and A63C then subtract........... Thank you.......                                              

Thursday 10 April 2014

Hexadecimal Number System

Hexadecimal system, i.e number system having 16 base is used as a convenient representation of binary numbers.This system contains only this 16 digits that are represented as follows :

Saturday 5 April 2014

Binary Number System

Human beings use base 10 (decimal) arithmetic

There are 10 distinct symbols, 0, 1, 2, …,9

Computers use base 2 (binary) system

There are only 0 and 1
These two binary digits are commonly referred as bits


(25)10 indicates number 25 base 10 i.e number in decimal system.
(25)2   indicates number 25 base 2 i.e number in binary system.

Conversion of Decimal number into Binary number :

Divide the decimal number by 2 repeatedly
Keep track of the remainders
Continue this process until the quotient becomes zero
Write the remainders in reverse order to obtain the binary number
Ex. Convert (25)10 to binary
               Quotient      Remainder
      25/2 =     12                  1                  LSB (least significant bit)
      12/2 =      6                   0
        6/2 =      3                   0
        3/2 =      1                   1
        1/2 =      0                   1                  MSB (most significant bit)

so (25)10  = (11001)2