Machine Representations of Numbers Binary system - one example of a number system that can be used to represent numerical values in an arithmetic unit A number system is defined by the set of values that each digit can assume and by an interpretation rule that defines the mapping between the sequences of digits and their numerical values Types of number systems - conventional (e.g.,binary, decimal) ECE666/Koren Part.1 .2 Copyright 2008 Koren BINARY SYSTEMS A Binary method of notation can be used to describe the settings pf binary components. The binary system is the positional numeration system to the base “2”. Binary notations uses only two symbols: 0 and 1. The symbols used in binary notation (0 and 1) are called “BITS”. ECE666/Koren Part.1 .3 Copyright 2008 Koren DECIMAL-BINARY CONVERSION To convert decimal whole numbers from base 10 to any other base, divide that number repeatedly by the value of the base to which the number is being converted. The division operation is repeated until the quotient is ZERO. The remainders – written in reverse of the order in which they were obtained, form the new equivalent numeral. ECE666/Koren Part.1 .4 Copyright 2008 Koren EXAMPLE 1
ECE666/Koren Part.1 .5 Copyright 2008 Koren
EXAMPLE 2
ECE666/Koren Part.1 .6 Copyright 2008 Koren
BINARY-DECIMAL CONVERSION
Binary numerals can be
converted to decimal by the use of expanded notation. When this approach is used, the position values of the original numeral are written out. ECE666/Koren Part.1 .7 Copyright 2008 Koren EXAMPLE 1