17.02.2018 Views

basic_engineering_mathematics0

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

34 Basic Engineering Mathematics<br />

(b) 3F 16 = 3 × 16 1 + F × 16 0 = 3 × 16 + 15 × 1<br />

and 1BF 16 = 1 × 16 2 + B × 16 1 + F × 16 0<br />

Thus 7A 16 = 122 10<br />

= 1 × 16 2 + 11 × 16 1 + 15 × 16 0<br />

= 256 + 176 + 15 = 447 10<br />

= 48 + 15 = 63<br />

Thus 3F 16 = 63 10<br />

Table 5.2 compares decimal, binary, octal and hexadecimal<br />

numbers and shows, for example, that<br />

Problem 12. Convert the following hexadecimal numbers<br />

23 10 = 10111 2 = 27 8 = 17 16<br />

into their decimal equivalents: (a) C9 16 (b) BD 16<br />

Table 5.2<br />

Decimal Binary Octal Hexadecimal<br />

(a) C9 16 = C × 16 1 + 9 × 16 0 = 12 × 16 + 9 × 1<br />

= 192 + 9 = 201<br />

Thus C9 16 = 201 10<br />

0 0000 0 0<br />

1 0001 1 1<br />

(b) BD 16 = B × 16 1 + D × 16 0 = 11 × 16 + 13 × 1<br />

2 0010 2 2<br />

= 176 + 13 = 189<br />

3 0011 3 3<br />

4 0100 4 4<br />

Thus BD 16 = 189 10<br />

5 0101 5 5<br />

6 0110 6 6<br />

7 0111 7 7<br />

Problem 13. Convert 1A4E 16 into a denary number.<br />

8 1000 10 8<br />

9 1001 11 9<br />

10 1010 12 A<br />

1A4E 16 = 1 × 16 3 + A × 16 2 + 4 × 16 1 + E × 16 0<br />

11 1011 13 B<br />

=1 × 16 3 + 10 × 16 2 + 4 × 16 1 + 14 × 16 0<br />

12 1100 14 C<br />

13 1101 15 D<br />

= 1 × 4096 + 10 × 256 + 4 × 16 + 14 × 1<br />

14 1110 16 E<br />

= 4096 + 2560 + 64 + 14 = 6734<br />

15 1111 17 F<br />

16 10000 20 10<br />

Thus 1A4E 16 = 6734 10<br />

17 10001 21 11<br />

18 10010 22 12<br />

19 10011 23 13<br />

20 10100 24 14<br />

To convert from decimal to hexadecimal:<br />

21 10101 25 15<br />

This is achieved by repeatedly dividing by 16 and noting the<br />

22 10110 26 16<br />

remainder at each stage, as shown below for 26 10<br />

23 10111 27 17<br />

24 11000 30 18<br />

16 26 Remainder<br />

25 11001 31 19<br />

26 11010 32 1A<br />

16 1 10 A 16<br />

27 11011 33 1B<br />

28 11100 34 1C<br />

0 1 1 16<br />

29<br />

31<br />

11101<br />

11111<br />

35<br />

37<br />

1D<br />

1F<br />

30<br />

32<br />

11110<br />

100000<br />

36<br />

40<br />

1E<br />

20<br />

most significant bit → 1 A ← least significant bit<br />

Hence 26 10 = 1A 16<br />

Similarly, for 447 10<br />

Problem 11. Convert the following hexadecimal numbers<br />

16<br />

16<br />

447<br />

27<br />

Remainder<br />

15 F 16<br />

into their decimal equivalents: (a) 7A 16 (b) 3F 16<br />

16 1 11 B 16<br />

0 1 1 16<br />

1 B F<br />

(a) 7A 16 = 7 × 16 1 + A × 16 0 = 7 × 16 + 10 × 1<br />

= 112 + 10 = 122<br />

Thus 447 10 = 1BF 16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!