Introduction to Computing (Lec)
Introduction to Computing (Lec)
Base 2
Digits used:0,1
Binary numbers is a number expressed in the base- 2 numeral
system or binary numeral system, which uses only two
symbols: typically, “0” (zero) and “1” ( one)
DECIMAL TO BINARY CONVERSION
BINARY TO DECIMAL CONVERSION
DECIMAL NUMBER SYSTEM
• Base 10
• Digits used: 0 to 9
• Decimal is a term that descrides the base-10 number system.
The decimal system consist on ten single-digit
number:0,1,2,3,4,5,6,7,8,9
CONVERSION OF DECIMAL REAL
NUMBERS TO BINARY
BINARY REAL NUMBERS TO DECIMAL
CONVERSIONS
BINARY ADDITION
• 0+0=0 1+0=1
• 0+1=1 1+1=0 w/a carry of 1
Binary division
• 1+1=1 0+1=0
• 0+1=1 meaningless/undefined 0+0= meaningless/
undefined
Octal number system
• Base 8
• Digit Used: 0 to 7
• The octal system is often used in computing because it can
represent binary numbers in a more compact form. Each
octal digit corresponds to a unique set of three binary digit.
DECIMAL TO OCTAL
CONVERSION
BINARY TO OCTAL CONVERSION
OCTAL TO DECIMAL CONVERSION
OCTAL TO BINARY CONVERSION
HEXADECIMAL NUMBER SYSTEM
• Base 16
• Digit used: 0 to 9
• Letter used: A to F
• Where: A=10 B=11 C=12 D=13 E=14 F=15
• Hexadecimal is often used in computing because it can represent
corresponds to a unique set of four binary digits (bits), making it
easy to convert between hexadecimal and binary.
DECIMAL OF HEXADECIMAL CONVERSSON
HEXADECIMAL TO BINARY CONVERSION
BINARY TO HEXADECIMAL CONVERSION
HEXADECIMAL TO DECIMAL CONVERSION
6 BASIC LOGIC GATES
LAWS OF BOOLEAN ALGEBRA