Binary & Decimal numbers. 3185 = 3*1000 + 1*100 + 8*10 + 5*1 = 3*10 3 + 1*10 2 + 8*10 1 + 5*10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

Intro to CS – Honors I Representing Numbers GEORGIOS PORTOKALIDIS
2.2 General Positional-Number-System Conversion
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Mathematics with Binary. Question  Below is a binary string  Which is the least significant bit (LSB)?  Which is the most significant bit (MSB)? 0.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Computer Systems 1 Fundamentals of Computing
COE 202: Digital Logic Design Number Systems Part 1
Number Systems and Codes In PLC
They are the same as registers since they store binary numbers. Called shifting registers since they shift (left or right) the binary number stored in.
Converting binary to decimal decimal to binary
Revision Introductory Lesson
Binary and Hexadecimal Numbers
Number Systems.
A little bit of exercise.. ;). Exercise Given to you are some binary to decimal examples : Given to you are some binary to decimal examples : Tens Units.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
Lecture Objectives: 1)Define the terms least significant bit and most significant bit. 2)Explain how unsigned integer numbers are represented in memory.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
Number System Chapter 3 Subject: Digital System Year: 2009.
CPU Internal memory I/O interface circuit System bus
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Number systems, Operations, and Codes
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Number Base Conversions
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Bits and Bytes. Decimal Numbers 6,357 has four digits -base-10 (6 * 1000) + (3 * 100) + (5 * 10) + (7 * 1) = = 6357 (6 * 10^3) + (3.
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
Two’s Complement. A system used to represent a negative number in binary A system used to represent a negative number in binary Positive numbers start.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
Phys 4330 Digital ElectronicsBinary System Digital circuits process signals that contain just two voltage levels or states, labeled logic "0" and logic.
Computer Number System
CS 160 Lecture 4 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
Arithmetic in Binary. Addition A “Rule of Addition” is a statement of the form: = 8 How many such rules are there in Decimal?
In decimal we are quite familiar with placing a “-” sign in front of a number to denote that it is negative The same is true for binary numbers a computer.
Number Representation 1 Lecture 2. Outcomes By the end of the session you should: – Understand what bits/bytes/words are. – Understanding conversion between.
Fall’ 2014 Number System CSE Number System How Computers Represent Data Binary Numbers The Binary Number System Bits and Bytes Text Codes Binary.
Binary Addition The simplest arithmetic operation in binary is addition. Adding two single-digit binary numbers is relatively simple, using a form of carrying:
Binary Numbers Press any key to begin.. In order to understand the binary numbering system lets first look at our decimal system. The decimal numbering.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
Binary & Decimal numbers
Addition and Subtraction
ECE 2110: Introduction to Digital Systems
Data Representation.
Number Systems Write the decimal value of the binary number
Negative Binary Numbers
Discrete Mathematics Numbering System.
Data Representation Binary Numbers Binary Addition
Steganography Example
Number Systems.
Negative Binary Numbers
Tutorial 7.
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Location in course textbook
Decimal System The radix or base of a number system determines
1. Number Systems.
Binary Lesson 3 Hexadecimal
Binary Numbers Press any key to begin..
Binary Lesson 2 Bytes.
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
C1 Number systems.
Binary Lesson 3 Hexadecimal
Numbers representations
Binary Lesson 4 Hexadecimal and Binary Practice
Binary to Decimal Conversion
ECE 331 – Digital System Design
Binary.
Presentation transcript:

Binary & Decimal numbers

3185 = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:

*(2 4 ) + 0*(2 3 ) + 1*(2 2 ) + 1*(2 1 ) + 0*(2 0 ) Binary system: Two digits: 0,1 Example:

Byte and Bit Bit: (binary digit) either 0 or 1 Byte: an ordered collection of 8 bits MSB (Most significant bit) LSB (Least significant bit)

*27*27 *26*26 *25*25 *24*24 *23*23 *22*222 *21*21 *20*20 Binary to Decimal *(2 7 )0*(2 6 )0*(2 5 )0*(2 4 )1*(2 3 )0*(2 2 )1*(2 1 )1*(2 0 ) = 11

Decimal to Binary 251 [25%2=1] 12 [25/2=12] 0 [12%2=0] 6 [12/2=6] 0 [6%2=0] 3 [6/2=2] 1 [3%2=1] 1 [3/2=1] 1 [1%2=1] 0 [1/2=0] Right Left 25 (decimal) = (binary)

Overflow The highest number represented by 8 bits is 255 (why?). What happens when we add 1 to it? The bit is lost !