conversion technique

Upload: velayudham-thiyagarajan

Post on 03-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 Conversion Technique

    1/2

    Conversion between various number systems

    From\To Decimal (0,1,29) Binary (0, 1) Octal (0,1,2.7)

    Integer part: Repeatedly DIVIDE thenumber by 2. Note the REMAINDERS

    from BELOW.

    Integer part: Repeatedly DIVIDE thenumber by 8. Note the REMAINDERS from

    BELOW.

    Decimal part: Repeatedly multiply the

    DECIMAL PART by 2. Note the

    INTEGER PART from TOP.

    Decimal part: Repeatedly multiply the

    DECIMAL PART by 8. Note the INTEGER

    PART from TOP.

    Integer part: (nth

    digit x 20) + [(n-1)

    thdigit x

    21

    + n-2th

    di it x 22

    + ...

    Decimal part: (1st

    digit after decimal x 2-1

    ) +

    (2nd

    digit after decimal x 2-2

    ) +

    ADD Inte er and decimal arts.

    Integer part: (nth

    digit x 80) + [(n-1)

    thdigit

    x81

    + n-2th

    di it x 82

    + ...

    Decimal part: (1st

    digit after decimal x 8-1

    ) +

    (2nd digit after decimal x 8-2) + ADD Inte er and decimal arts.

    Integer part: (nth

    digit x 160) + [(n-1)

    thdigit x

    161)] + [(n-2)

    thdigit x 16

    2)] + ...

    Decimal part: (1st

    digit after decimal x 16-

    1)+(2

    nddigit after decimal x 16

    -2)+

    ADD Inte er and decimal arts.

    Number 4-2-1 code 8-4-2-1 code

    0 000 0000

    1 001 0001

    2 010 0010

    3 011 0011

    4 100 0100

    5 101 0101

    6 110 0110

    7 111 0111

    8 - 1000

    9 - 1001

    A(10) - 1010

    B(11) - 1011

    C(12) - 1100

    D(13) - 1101

    E(14) - 1110

    F(15) - 1111

    Hexadecimal

    Decimal

    Binary

    NOT REQUIRED

    Octal

    Integer and Decimal part: Group the

    numbers in "3s" from the decimal point.

    Use 4-2-1 code(3-Bit BCD code).

    Integer and Decimal part: Write the

    number one by one with tab-spacing(5

    spaces gap). Write the RESPECTIVE

    binary code below each number using4-2-1 code.

    Integer and Decimal part: Write the

    number one by one with tab-spacing(5

    spaces gap). Write the RESPECTIVE

    binary code below each number using

    8-4-2-1 code.

    NOT REQUIRED

    Integer and decimal part: Direct conversion

    is NOT POSSIBLE. Convert Hexadecimal

    to binary first. Thereafter, convert again the

    binary into Octal.

    NOT REQUIRED

  • 7/28/2019 Conversion Technique

    2/2

    Number 4-2-1 code 8-4-2-1 code

    0 000 0000

    1 001 0001

    2 010 0010

    3 011 0011

    4 100 01005 101 0101

    6 110 0110

    7 111 0111

    8 - 1000

    9 - 1001

    A(10) - 1010

    B(11) - 1011

    C(12) - 1100

    D(13) - 1101

    E(14) - 1110

    F(15) - 1111