Lecture-5
Lecture-5
CSC-110
MOBILE ALERT
2
OR
We will be looking,
What is a Number System
Decimal & Binary Number System
How Data Represented in Computer
Binary & Switches, Bits & Bytes
Binary Number System Explained
Writing Binary Numbers, Expanded Notation
Conversions
Binary to Decimal
Decimal to Binary
Exercise
How Data Represented in Computer
4
How Data Represented in Computer
5
Implementing a Byte
How Data Represented in Computer
8
Binary Numbers
A binary number is a sequence of the digits 0 and 1, such as
1101001
The number shown has no fractional part and so is called a
binary integer.
A binary number having a fractional part contains a binary
point (also called a radix point), as in the number
1001.01
Binary Number System
15
Base or Radix
The base of a number system (also called the radix) is equal to the number of
digits used in the system.
Place Value
A positional number system is one in which the
position of a digit determines its value,
And each position in a number has a place value
equal to the base of the number system raised to
the position number.
Converting Binary Numbers to Decimal
19
Expanded Notation
Example :
The binary number 1011 can be
expressed as
Converting Binary Numbers to Decimal
21
21 64 93
274.25 128.12 256.0005