Professional Documents
Culture Documents
Data Representation
in Computers
Binary Representation of Data
In order to work with data, the data must be
represented inside the computer
Digital computers represent data by means
of an easily identified symbol called a digit
Numbering Systems
Each number system has a base also called
a Radix
A decimal number system is a system of
base 10; binary is a system of base 2; octal is
a system of base 8; and hexadecimal is a
system of base 16
In base 10, we can count from 0 to 9, that
is,10 digits
Numbering Systems
Converting a number from one Base
to another:
Binary to Decimal
Start at the rightmost bit
Take that bit and multiply by 2n where n is
the current position beginning at 0 and
increasing by 1 each time. This represents a
power of two
Sum each terms of product until all bits
have been used
Example
Decimal to Binary
Example
Converting Decimal fraction
to Binary
Example
Decimal to Octal
Example
Decimal fraction to Octal
Octal to Decimal
Octal to Decimal
Decimal to Hexadecimal
Decimal to Hexadecimal
Decimal to Hexadecimal
Hexadecimal to Decimal
Binary to Hexadecimal
Hexadecimal to Binary
Number Representation
ASCII(American Standard code for Information Interchange)
Unicode