answersLogoWhite

0

by default any float value is double

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What data type is used to store dollar amounts?

double or float


Does float data type accept negative values?

Of course, you should have tested: float x= -1.0;


Why should PCM be preferable to DM for encoding analog signals that represent digital data?

PCM is preferable because of better SNR characteristics.


When you use decimal which type of data is it?

Decimal numbers are real numbers. In C and C++ we use the float, double and long double data types to represent real numbers.


What Bytes occupied by double data type in c?

The number of bytes occupied by a specific data type depends on the implementation. In general, the double data type is eight bytes long, but you can check it using sizeof(double). In 16-bit,32-bit compilers double size is 8 bytes.It looks like float because it stores scientific and financial like big float values.


What are the different data types suppourted by c.give example?

data types supported by "C" are int , float , char , long , double , uint


What are tose primitive data types?

byte, short, int, long, char, float, double, boolean


What are 8 examples of data types?

byte short long int char float double boolean


What data type is a percentage?

Percentage is not a data type. A percentage of something would need a floating point data type to store it. One of the following data types. float double long double (in gcc, not sure about other compiler systems)


What data type is is suited to represent cost of a car?

"float" should be sufficient


Why long data type converted to double by multiplying by 1.0?

If two numbers are involved in a calculation (in this case a multiplication), the result is converted to the more precise data type, to avoid data loss. Even though between long and double data can be lost in either direction, a number with decimals (such as double) is generally considered to be more precise than a number without decimals (such as long). Even though languages such as Java also have a "float" data type, "double" is normally used by default in cases such as these, because of the greater precision. However, you can convert explicitly to float, if you like, using a cast. (Float uses 4 bytes, while double uses 8 bytes.)


Innumerate the different types of data type?

eight primitive data types are: -boolean -char -byte -short -int -long -double -float