For this question, mark all answers that apply: Assume any float or int is stored in 32 bits and float arithmetic is as specified by the IEEE 754 standard for single-precision. Which of the following statements about floating point arithmetic are true? 1) Catastrophic cancellation can cause loss of accuracy in floating-point multiplication 2) If all values are normal and within range (a+b) must equal (b+a) 3) If all values are normal and within range, (a*b) must equal (b*a) 4) A too-large value can be represented as infinity 5) NaN can be used to indicate that a result is not a valid floating-point number.
For this question, mark all answers that apply: Assume any float or int is stored in 32 bits and float arithmetic is as specified by the IEEE 754 standard for single-precision. Which of the following statements about floating point arithmetic are true? 1) Catastrophic cancellation can cause loss of accuracy in floating-point multiplication 2) If all values are normal and within range (a+b) must equal (b+a) 3) If all values are normal and within range, (a*b) must equal (b*a) 4) A too-large value can be represented as infinity 5) NaN can be used to indicate that a result is not a valid floating-point number.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.3: Data Types
Problem 7E
Related questions
Topic Video
Question
For this question, mark all answers that apply:
Assume any float or int is stored in 32 bits and float arithmetic is as specified by the IEEE 754 standard for single-precision. Which of the following statements about floating point arithmetic are true?
1) Catastrophic cancellation can cause loss of accuracy in floating-point multiplication
2) If all values are normal and within range (a+b) must equal (b+a)
3) If all values are normal and within range, (a*b) must equal (b*a)
4) A too-large value can be represented as infinity
5) NaN can be used to indicate that a result is not a valid floating-point number.
( Please do fast i have one hour)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr