Otherintegertypes otherintegertypes int unsignedint

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: Binary Numbers Subtract the Binary Numbers 1000 – 0010 = 1- 0010 2- 0011 3- 0110 4- 1001 Subtract the Binary Numbers Subtract the Binary Numbers 1000 – 0010 = 012 1000 0010 0110 1- 0010 2- 0011 3- 0110 4- 1001 Types Types Types provide an encoding. Types also provide a set of operations that can be performed on this encoding. So far we have used two types: int and double Integers Integers Integers can be converted from base 2 Negative integers are more complex 01000001 01000010 01000011 01100001 01100010 01100011 00110001 65 66 67 97 98 99 49 Negative Binary Numbers Negative Binary Numbers How do we encode negative numbers in binary? Consider our 4 bit overflow problem. This implies that 1111 in our 4 bit representation could stand for...
View Full Document

This note was uploaded on 03/12/2010 for the course ENGIN 101 taught by Professor Jeffringenberg during the Fall '07 term at University of Michigan.

Ask a homework question - tutors are online