TM112 Meeting2-Binary Data Representation
TM112 Meeting2-Binary Data Representation
Meeting #2
Block 1 (Part 2 )
Binary data representation and
computation
OU Materials, PPT prepared by Dr. Ahmad Mikati
April 16, 2025 TM112-AOU 1
Contents
• Introduction
• 2.1 Representing integers and text in binary
• 2.2 Decimal numbers and some limitations of binary
representations
• 2.3 Representing logic operations and logic circuits
• Summary
• Binary (Base 2)
• It uses 2 symbols (0 and1).
• Octal (Base 8)
• It uses 8 symbols (0, 1, 2, 3, 4, 5, 6 and 7).
• Examples:
• 37 = 7 + 3*101
• 345 = 5 + 4*101 + 3*102
• 4621 = 1 + 2*101 + 6*102 + 4*103
• Examples:
• 468 = 6 + 4*81 = 3810
• Examples:
• 4616 = 6 + 4*161 = 7010
• Examples:
• 1102 = 0 + 1*21 + 1*22 = 610
•
April 16, 2025 TM112-AOU 13
The word size for a computer is the number of bits that
the CPU of a particular computer can handle at one time.
Binary to Decimal Conversion
To convert from binary to decimal a method known as
Positional notation can be used. The below figures illustrate
the method with an example of how to convert 100110112 to
decimal.
Decimal number=
8+1=9
OR logic gate
OR truth table