Question

In: Computer Science

Computers and programs use double floats when they need?

Computers and programs use double floats when they need?

Solutions

Expert Solution

Ans: -

In programming languages there are data types which are used for declaring variables. All the data types have different storage space and these data types are used according to the required criteria when they are needed in different programs. So, one these data types are float data type which is used in declaring the decimal type values. In C programming language the float data type has the precision of six decimal values. Double float is used for performing complex arithmetic operations faster.

float data types values can be declared when there is requirement of multiple floating-point values.

For the less consumption and efficient use of the memory the float can be used. For example, while storing a large size arrays of numbers to reduce the memory use by the program.

In most of the cases double data types is frequently used by the computers and programs but float can be used to make a program less complex because float value has fewer decimal places than the double. It also saves the size of the memory. But double float data type is used for getting the more complex decimal values accurately and efficiently. It uses more space than the float data type values

The float can be also used due to the hardware specifications when hardware supports the single float-point values precision than the double floating-point precision. In this case the float can be used by the computers and programs.

When any computer application is performing many arithmetic operations, which requires floating point values then the float can be used.

In c programming language the double float has precision of 16 decimal values. Double floats can be used when the accurate value is required in decimal format.


Related Solutions

With the wide spread use of computers, do we need to know debits and credits?
With the wide spread use of computers, do we need to know debits and credits?
All of these programs need IO. So you must use appropriate Visual Studio solution as the...
All of these programs need IO. So you must use appropriate Visual Studio solution as the template (windows32 has been provided in the book’s website and you supposed to know how to use it as it was required in the previous assignment) Write an assembly language program to calculate the following. (((((20 + 21) × 22) + 23)×24)+25 : : :) + 2n Hint: Note that when n is even, carrying result is multiplied by 2n. When n is odd,...
When people use interactive programs on the Web, do you feel it is appropriate to track...
When people use interactive programs on the Web, do you feel it is appropriate to track which buttons they select or to record the data they enter? When is it appropriate, and when is it not? Does it matter how long the data is stored? Does it matter if a profit is made from using the data?
A thin oil slick (no = 1.50) floats on water(nw = 1.33). When a beam of...
A thin oil slick (no = 1.50) floats on water(nw = 1.33). When a beam of white light strikes this film at normal incidence from air, the only enhanced reflected colors are red (650 nm) and violent (390 nm). From this information, deduce the minimum thickness t of the oil slick.
What fraction of polystyrene is submerged when it floats in freshwater, given the density of water...
What fraction of polystyrene is submerged when it floats in freshwater, given the density of water at 0°C is very close to 1000 kg/m3?
a. An astronaut holding a heavy object floats in empty space. When he throws the object,...
a. An astronaut holding a heavy object floats in empty space. When he throws the object, he finds himself moving in the opposite direction. Explain, using conservation of momentum, why this occurs. b. A system starts with a net momentum of zero and is only affected by internal forces. After a series of events, what must the net momentum of the system be? If the forces are external, why is this not necessarily the case? c.A box slides along ice...
Explain the concepts of single and double lap roof coverings stating when each is used. Use...
Explain the concepts of single and double lap roof coverings stating when each is used. Use sketches to illustrate your answer.
This assignment will give you more experience on the use of: 1. integers (int) 2. floats...
This assignment will give you more experience on the use of: 1. integers (int) 2. floats (float) 3. conditionals 4. iteration The goal of this project is to make a fictitious comparison of the federal income. You will ask the user to input their taxable income. Use the income brackets given below to calculate the new and old income tax. For the sake of simplicity of the project we will only consider individuals and not married users. We will also...
This assignment will give you more experience on the use of: 1. integers (int) 2. floats...
This assignment will give you more experience on the use of: 1. integers (int) 2. floats (float) 3. conditionals(if statements) 4. iteration(loops) Functions, lists, dictionary, classes CANNOT BE USED!!! The goal of this project is to make a fictitious comparison of the federal income. You will ask the user to input their taxable income. Use the income brackets given below to calculate the new and old income tax. For the sake of simplicity of the project we will only consider...
What is a Decision? My sales reps need computers.
What is a Decision? My sales reps need computers.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT