Lecture3-Number System

Lecture3-Number System - FAST, National University of...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: FAST, National University of Computer and Emerging Sciences, Islamabad Lecture 3: Number System Course: Programming For Engineers-1 Asma Ahmad Number Systems Decimal Number System Binary Number System Octal Number System Hexadecimal Number System Decimal Number System Base is 10 Use 10 symbols 0,1,2,3,4,5,6,7,8,9 Each place is weighted by the power of 10 E.g. 4,309 Binary Number System Base is 2 or b or B or Bin Two symbols: 0 and 1 Each place is weighted by the power of 2 Example : 1011 2 or 1011 B Converting Decimal to Binary For example convert 13 to Base 2 13 2 6 ---- 1 2 3 ---- 0 2 1 ---- 1 (1101) 2 Converting decimal to binary Example: 162: So, 162 10 = 10100010 2 162 / 2 = 81 rem 81 / 2 = 40 rem 1 40 / 2 = 20 rem 20 / 2 = 10 rem 10 / 2 = 5 rem 5 / 2 = 2 rem 1 2 / 2 = 1 rem 1 / 2 = 0 rem 1 Some Exercises 13 D = (?) B 23 D = (?) B 72 D = (?) B 1101 1101 B 10111 10111 B 1001000 1001000 B Some Exercises 59 D = (?) B 145 D = (?) B 111011 111011 B 10010001 10010001 B Conversion from binary number system to decimal system Hexadecimal Number System...
View Full Document

This note was uploaded on 01/21/2011 for the course EE 1 taught by Professor Shahidanwar during the Spring '10 term at NUCES.

Page1 / 20

Lecture3-Number System - FAST, National University of...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online