1 Data Convertion

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

CALCULATING AND CONVERTING

DATA STORAGE

Capacity – Number of bytes (character) a storage medium can hold.

8 bits 1 B
1 Character 1 B
1024 B 1 KB Kilobyte (KB) – Thousand
1024 KB 1 MB Megabyte (MB) – Million
1024 MB 1 GB Gigabyte (GB) – Billion
1024 GB 1 TB Terabyte (TB) – Trillion
1024 TB 1 PB Petabyte (PB) – Quadrillion
1024 PB 1 EB Exabyte (EB) – Quintillion
1024 EB 1 ZB Zetabyte (ZB) – Sixtillion
1024 ZB 1 YT Yottabyte (YB) – Septillion

DATA CONVERSION

Data conversion is the conversion of computer data from one format to


another.

Data Representation – Recognize only two discrete states: on or off, Use


binary system to recognize two states, Use number system with two
unique digits: 0 and 1, called bits (short of binary digits).

Binary - is a number expressed in the binary numeral system, or base-2


numeral system, which represents numeric values using two
different symbols: typically 0 (zero) and 1 (one).

Decimal - (also called base ten or occasionally denary) has ten as its base. It
is the numerical base most widely used by modern civilizations.
Decimal notation often refers to a base-10 positional notation such
as the Hindu-Arabic numeral system; however, it can also be used
more generally to refer to non-positional systems such as Roman or
Chinese numerals which are also based on powers of ten.
Hexadecimal - (also base 16, or hex) is a positional numeral system with a
radix, or base-16. It uses sixteen distinct symbols, most often the
symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or
alternatively a–f) to represent values ten to fifteen.

Octal - Oct for short, is the base-8 number system, and uses the digits 0 to 7.
Octal numerals can be made from binary numerals by grouping
consecutive binary digits into groups of three (starting from the
right).

Three popular coding systems to represent data.

1. ASCII – American Standard Code for Information Interchange


2. EBCDIC – Extended Binary Coded Decimal Interchange Code
3. Unicode – Coding scheme capable of representing all world’s languages.

AMERICAN STANDARD CODE FOR INFORMATION INTERCHANGE


(ASCII) TABLE
Data Conversion

Binary Decimal Hexadecimal Octal


10111010 186 BA 272
10111 23 17 27

Convert Decimal Numbers to Binary Numbers

1. 3010 = ___________ 2
2. 111111112 = _____________ 10

Checking:
Quotient Remainder
1x24 + 0x23 +1x22+1x21 + 1x20
23/2 11 1
11/2 5 1
16 + 8 + 4 + 2 + 1
5/2 2 1
2/2 1 0
16 + 0 + 4 + 2 + 1
1/2 0 1
2310
Answer: 2310 = 10111

Convert Binary Numbers to Decimal Numbers

Checking:
1. 101110102 = _____________ 10 Quotient Remainder
186/2 93 0
1 0 1 1 1 0 1 0 93/2 46 1
46/2 23 0
128 64 32 16 8 4 2 1 23/2 11 1
128 0 32 16 8 0 2 0 11/2 5 1
5/2 2 1
2/2 1 0
Answer: 128 + 32 + 16 + 8 + 2 = 18610 1/2 0 1

Binary Number 000 001 010 011 100 101 110 111
Octal Number 0 1 2 3 4 5 6 7

Convert Octal Numbers to Binary Numbers

1. 278 = ______ 2

28 → 0102 + 78 → 1112

= 0101112→ answer
Convert Binary Numbers to Octal Numbers

1. 101110102 = ______ 8

0102 → 28 + 1112 → 78 + 0102 →28

= 2728 → answer

Binary Number 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Hexadecimal
0 1 2 3 4 5 6 7 8 9 10→A 11→B 12→C 13→D 14→E 15→F
Number

Convert Hexadecimal Numbers to Binary Numbers

1. B A16 = ______ 2

B16 → 10112 + A16 → 10102

= 101110102→ answer

Convert Binary Numbers to Hexadecimal Numbers

2. 101112 = ______ 16

00012 → 116 + 01112 → 716

= 1716 → answer

Note: For converting other number systems (ex. Hexadecimal to Decimal and to
Octal or vice versa) convert first to binary number and binary number to
the specific number system.

Ex. Hexadecimal → Binary → Octal


DATA CONVERSION

Convert the following.

A. Binary to Decimal

1. 1010 = _______________

2. 11100 = _______________

B. Octal to Binary

1. 4 = _________________

2. 472 = _________________

A. Hexadecimal to Binary

1. 5B1 = _________________

2. BAD = _________________

B. Octal to Decimal

1. 527 = _________________

2. 35 = _________________

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy