The algorithms for the floating-point arithmetic operations in Sec. 10-5 neglect the possibility of exponent overflow or
Question:
The algorithms for the floating-point arithmetic operations in Sec. 10-5 neglect the possibility of exponent overflow or underflow.
a. Go over the three flowcharts and find where an exponent overflow may occur.
b. Repeat (a) for exponent underflow. An exponent underflow occurs if the exponent is more negative than the smallest number that can be accommodated in the register.
c. Show how an exponent overflow or underflow can be detected by the hardware.
Transcribed Image Text:
10-5 Floating-Point Arithmetic Operations Many high-level programming languages have a facility for specifying floating- point numbers. The most common way is to specify them by a real declaration statement as opposed to fixed-point numbers, which are specified by an integer declaration statement. Any computer that has a compiler for such high-level programming language must have a provision for handling floating-point arithmetic operations. The operations are quite often included in the internal hardware. If no hardware is available for the operations, the compiler must be designed with a package of floating-point software subroutines. Although the hardware method is more expensive, it is so much more efficient than the software method that floating-point hardware is included in most computers and is omitted only in very small ones. Basic Considerations Floating-point representation of data was introduced in Sec. 3-4. A floating- point number in computer registers consists of two parts: a mantissa m and an exponent e. The two parts represent a number obtained from multiplying m times a radix r raised to the value of e; thus mx r The mantissa may be a fraction or an integer. The location of the radix point and the value of the radix r are assumed and are not included in the registers. For example, assume a fraction representation and a radix 10. The decimal number 537.25 is represented in a register with m = 53725 and e = 3 and is interpreted to represent the floating-point number .53725 × 10³
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (8 reviews)
Answered By
Bhartendu Goyal
Professional, Experienced, and Expert tutor who will provide speedy and to-the-point solutions. I have been teaching students for 5 years now in different subjects and it's truly been one of the most rewarding experiences of my life. I have also done one-to-one tutoring with 100+ students and help them achieve great subject knowledge. I have expertise in computer subjects like C++, C, Java, and Python programming and other computer Science related fields. Many of my student's parents message me that your lessons improved their children's grades and this is the best only thing you want as a tea...
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Cloud computing offers a way of delivering computing resources instantly, on-demand, and cheaply. Cloud computing attracts companies of different sizes. Citrix Cloud is a platform that hosts and...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
We saw in Section 25.6 that DCC can be used to form a peptide bond. We explored the mechanism, and we saw that DCC activates the COOH moiety so that it readily undergoes nucleophilic acyl...
-
The beta for a certain stock is 1.15, the risk-free rate is 5 percent, and the expected return on the market is 13 percent. Complete the following table to decompose the stocks return into the...
-
Spherical refracting surfaces. An object O stands on the central axis of a spherical refracting surface. For this situation, each problem in Table 34-5 refers to the index of refraction n1 where the...
-
What immediate steps could Micropower take to help the consultants, particularly LO11 those who feel very unhappy, perform well and feel more comfortable in their new roles?
-
Inman Construction Company is considering selling excess machinery with a book value of $280,000 (original cost of $400,000 less accumulated depreciation of $120,000) for $292,000, less a 5%...
-
producing output but are cur- 8. The market for fertilizer is perfectly competitive. Firms in the market are rently incurring economic losses. a. How does the price of fertilizer compare to the av-...
-
Repeat Prob. 10-18 for signed-magnitude binary numbers. Prob. 10-18 Derive an algorithm in flowchart form for the comparison of two signed binary numbers when negative numbers are in signed-2's...
-
Derive an algorithm in flowchart form for the comparison of two signed binary numbers when negative numbers are in signed-2's complement representation: a. By means of a subtraction operation with...
-
Electric bill Categorize each expense as a necessary expense or an expense that is a want.
-
Draw a vector field diagram for particles carrying charges \(+2 q\) and \(-q\) separated by a distance \(r\). Comment on the significance of the vector diagram.
-
(a) Show that the Jones matrix of a polarization analyzer set at angle \(\alpha\) to the \(X\)-axis is given by \[ \underline{\mathbf{L}}(\alpha)=\left[\begin{array}{cc} \cos ^{2} \alpha & \sin...
-
Let \(\mathbf{V}(t)\) be a linearly filtered complex-valued, wide-sense stationary random process with sample functions given by \[ \mathbf{v}(t)=\int_{-\infty}^{\infty} \mathbf{h}(t-\tau)...
-
Antismoking advocates cheered in the summer of 1997 when the U.S. tobacco industry agreed to pay out more than U.S. \($368.5\) billion to settle lawsuits brought by forty states seeking compensation...
-
Generate the full set of clauses for the map-coloring graph in Figure 8.1. Resolve these clauses to prove that a three-coloring solution does exist for the graph. data from figure 8.1 A B C D
-
How could ISO 9000 help the hotel?
-
Is it a breach of fiduciary duty for a director of a real estate investment trust (REIT) negotiating a joint venture on behalf of the REIT with another director for the development of a portfolio of...
-
Implement the Moore state machine described by the following state table using the programmable logic block shown in Figure 5-13. Your answer should include the coniguration bits for the logic block....
-
For the programmable logic block shown in Figure 5-13, show the necessary configuration settings to implement each of the following types of circuits. You can assume that the upper data input of each...
-
Use Shannons expansion theorem to express the following functions in terms of C and C. (a) F(A,B,C) (b) F(A,B,C) = AB + BC + AC = m(0,2,3,5,6)
-
9. The following selected data are from a recent statement of cash flows: Net cash flow from operating activities $35,000 Net cash flow used for investing activities (20,000) Net cash flow from...
-
You can handle the 20+ tax system expense categories and multiple classes of operating expenses (COR, COG, SGA) by using account numbers with at least ________ digits .
-
is the obligation that is created when an employee accepts a manager's delegated authority
Study smarter with the SolutionInn App