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

Binary Conversion

The document discusses binary representation of data in computers, with bits as the smallest unit of data that can have the value of 1 or 0. It explains how binary codes are used to represent letters, numbers, and characters using strings of bits. Various file formats and storage units are defined, such as bytes, kilobytes, megabytes, and calculations are provided for determining storage capacities based on file sizes.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
444 views

Binary Conversion

The document discusses binary representation of data in computers, with bits as the smallest unit of data that can have the value of 1 or 0. It explains how binary codes are used to represent letters, numbers, and characters using strings of bits. Various file formats and storage units are defined, such as bytes, kilobytes, megabytes, and calculations are provided for determining storage capacities based on file sizes.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

BINARY

Within a computer, information is


represented and stored in a digital binary
format. The term bit is an abbreviation of
binary digit and represents the smallest
piece of data. Humans interpret words and
pictures; computers interpret only patterns
of bits.
A bit can have only two possible values, a
one digit or a zero digit. A bit can be used
to represent the state of something that has
two states. For example, a light switch can
be either On or Off; in binary
representation, these states would
correspond to 1 and 0, respectively.
Computers use binary codes to represent
and interpret letters, numbers and special
characters with bits. A commonly used
code is the American Standard Code for
Information Interchange (ASCII). With
ASCII, each character is represented by a
string of data.
For example:

Capital Letter: A = 01000001


Number: 9 = 00001001
Special Character: # = 00100011
Each group of eight bits, such as the
representations of letters and numbers, is
known as a byte. Codes can be used to
represent almost any type of information
digitally: computer data, graphics, photos,
voice, video and music.
Convert Decimal to Binary

To convert a decimal number to binary, all you


have to do is divide the number by 2. Get the
quotient and the reminder. Bring down the
quotient , divide it by 2, get the quotient and
remainder again. Do it repeatedly until the
quotient results to 0. copy the remainder from
bottom to top, and that is the binary equivalent.
Example: 25
Quotient Remainder
25/2 12 1
12/2 6 0
6/2 3 0
3/2 1 1
½0 1

25 = 11001
Checking: 1 1 0 0 1
16 8 4 2 1
16 8 0 0 1
16+8+1=25
CONVERT THE FOLLOWING
DECIMALS TO BINARY:

1. 55 6. 252
2. 147 7. 122
3. 227 8. 105
4. 235 9. 215
5. 217 10. 41
CALCULATING DATA STORAGE
While a bit is the smallest representation of
data, the most basic unit of digital storage is the
byte. A byte is 8 bits and is the smallest unit of
measure used to represent data storage capacity.
When referring to storage space, we use the
term bytes (B), kilobytes (KB), megabytes
(MB), gigabytes (GB), and terabytes (TB).
One kilobyte is a little more than 1000
bytes specifically 1,024. A MB represents
more than a million bytes or 1,048,576.
1,073,741,824 bytes. A TB is 1,099,
627,776.
In general, when something is represented
digitally, the greater the detail, the greater
the number of bits needed to represent it. A
low resolution picture from a digital
camera will use around 360KB, and a
high- resolution picture could use 2MB or
more.
Once we know the size of a file or folder, it is
possible to determine the number of bytes
being used.

For example: A file is 20KB in size


1KB = 1,024 bytes
20 * 1024 = 20, 480 bytes in a
20KB file
If a 20KB file is stored in a 1MB folder (1
MB = 1,048,576 bytes of space) then
approximately a total of 51 files of the
same size can be stored in that folder.
(1,048,576 / 20, 480 = 51.2)
1. How many 60KB jpg files can be stored
on a 2MB folder in your hard drive?

2. How many 5MB mp3 files can be stored


on a 1GB flash drive?

3. How many 750 MB avi files can be


stored on a 4.3 GB DVD – R?

You might also like