0% found this document useful (0 votes)
3 views

Computer Ch 2

The document provides a tutorial on converting numbers between decimal and binary systems. It includes step-by-step examples for converting the decimal numbers 118, 23, 20, 46, and 30 to binary, as well as converting binary numbers back to decimal. The conversions demonstrate the process of division by 2 for binary conversion and the use of powers of 2 for decimal conversion.

Uploaded by

n.p.roy1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Computer Ch 2

The document provides a tutorial on converting numbers between decimal and binary systems. It includes step-by-step examples for converting the decimal numbers 118, 23, 20, 46, and 30 to binary, as well as converting binary numbers back to decimal. The conversions demonstrate the process of division by 2 for binary conversion and the use of powers of 2 for decimal conversion.

Uploaded by

n.p.roy1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer

chapter - 2
( BASIC COMPUTER NUMBER SYSTEM)

1. Convert the following numbers from decimal to binary and vice-versa

(a) → Convert to binary


118 ÷ 2 = 59 remainder 0
59 ÷ 2 = 29 remainder 1
29 ÷ 2 = 14 remainder 1
14 ÷ 2 = 7 remainder 0
7 ÷ 2 = 3 remainder 1
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Binary = 1110110

(b) → Convert to decimal


= 1×2⁴ + 0×2³ + 1×2² + 1×2¹ + 1×2⁰
= 16 + 0 + 4 + 2 + 1 = 23

(c) → Convert to decimal


= 1×2⁴ + 0×2³ + 1×2² + 0×2¹ + 0×2⁰
= 16 + 0 + 4 + 0 + 0 = 20

(d) → Convert to binary


46 ÷ 2 = 23 remainder 0
23 ÷ 2 = 11 remainder 1
11 ÷ 2 = 5 remainder 1
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Binary = 101110

(e) → Convert to binary


30 ÷ 2 = 15 remainder 0
15 ÷ 2 = 7 remainder 1
7 ÷ 2 = 3 remainder 1
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Binary = 11110
---

You might also like