3.4.1 Computer Representation of Numbers Numerical round-off errors are directly
ID: 3886367 • Letter: 3
Question
3.4.1 Computer Representation of Numbers Numerical round-off errors are directly related to the manner in which numbers are stored in a computer. The fundamental unit whereby information is represented is called a word. This is an entity that consists of a string of binary digits, or bits. Numbers are typically stored in one or more words. To understand how this is accomplished, we must first review some material related to number systems. Number Systems. A number system is merely a convention for representing quantities Because we have 10 fingers and 10 toes, the number system that we are most familiar with is the decimal, or base-10, number system. A base is the number used as the refer ence for constructing the system. The base-10 system uses the 10 digits-0, 1, 2, 3, 4, 5, 6, 7, 8, 9-to represent numbers. By themselves, these digits are satisfactory for counting from 0 to 9 For larger quantities, combinations of these basic digits are used, with the position or place value specifying the magnitude. The right-most digit in a whole number repre sents a number from 0 to 9. The second digit from the right represents a multiple of 10. The third digit from the right represents a multiple of 100 and so on. For example, if we have the number 86,409 then we have eight groups of 10,000, six groups of 1000 four groups of 100, zero groups of 10, and nine more units, or (8 × 104) (6 × 103) (4 × 102) + (OX 10') (9 × 100) = 86,409 Figure 3.5a provides a visual representation of how a number is formulated in the base-10 system. This type of representation is called positional notation. Because the decimal system is so familiar, it is not commonly realized that there are alternatives. For example, if human beings happened to have had eight fingers and eight toes, we would undoubtedly have developed an octal, or base-8, representation. In the same sense, our friend the computer is like a two-fingered animal who is limited to two states-either 0 or 1. This relates to the fact that the primary logic units of digital com puters are on/off electronic components. Hence, numbers on the computer are represented with a binary, or base-2, system. Just as with the decimal system, quantities can be represented using positional notation. For example, the binary number 11 is equivalent to (1 21) + (1 20) = 2 + 1 = 3 in the decimal system. Figure 3.5b illustrates a more complicated example Integer Representation. Now that we have reviewed how base-10 numbers can be represented in binary form, it is simple to conceive of how integers are represented on a computer. The most straightforward approach, called the signed magnitude method, employs the first bit of a word to indicate the sign, with a 0 for positive and a 1 forExplanation / Answer
The solution is provided with an image,for your better understanding.
1000000010101101
the last 1 in your left hand side is treated as sign bit. so we are now left it for future use.
now your number looks like 000000010101101.
so from your right hand side to the left we will mark it as power of 2 according to the position. It will start with 2 to the power zero and grow like 2 to the power 1 and so on.
--> 0*2^14+0*2^13+0*2^12+0*2^11+0*2^10+0*2^9+0*2^8+1*2^7+0*2^6+1*2^5+0*2^4+1*2^3+1*2^2+0*2^1+1*2^0
-->0+0+0+0+0+0+0+1*2^7+0+1*2^5+0+1*2^3+1*2^2+0+1*2^0
-->2^7+2^5+2^3+2^2+1 {as 2^0=1}
--> 128+32+8+4+1
-->173 in base 10
now as we know for signed bit 1=positive
and 0 = negative
so the decimal representation of the given number will be (-173)10
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.