Question: f= float g= double the questions are talking about these variables in java. B. Precision and Range Interestingly some numbers can be perfectly represented in

 f= float g= double the questions are talking about these variables

f= float

g= double

the questions are talking about these variables in java.

B. Precision and Range Interestingly some numbers can be perfectly represented in Base 10, but not in Base 2. An example is one-tenth (in Base 10, this is 0.1; in Base 2 this is a repeating decimal. Feel free to try!) Suppose we set both fand g to one-tenth using the statements below. f = 0.1; g = 0.1; = Answer the following questions. For each, mark the best answer. Which will be closer to the actual value of one-tenth? Wh f g g Which can hold higher values? f 3 g Which takes more memory? f g When using real values I should always use type double, to be safe. True False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!