answersLogoWhite

0

That usually refers to a floating-point number that is stored in 8 bytes, and has (in decimal) about 15 significant digits. In contrast, single-precision is stored in 4 bytes, and has only 6-7 significant digits.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How can you increase the precision of the double in c?

no you cannot increase the precision of double itself in C


Can a double value be assigned to float variable?

THIS IS FOR JAVA i don't know about anything about other languages yes it can be assignedthe syntax is:int (number) = (float) numberFOR EXAMPLE:int = a;a = (float ) 5.5;if the (float) is not there then in Java it gives an error saying precision loss of data type


What error occurs when a real value is attempted to be assigned to an integer variable?

real value neededA compile time error i.e ..Error: possible loss of precision: double, required: intNone, it will converted automagically.


How do you write a floating point variable in c?

You declare a floating point variable using the float or double keyword for a single- or double-precision floating point variable, respectively:float a;double b;You reference a floating-point variable just like any other scalar variable by using the variable's name in a compatible expression, e.g.a += 2;b /= a;Floating point literals use a period for the decimal point, no "thousands separator," and use the letter 'e' to denote a power of ten, e.g.a = 0.123;b = 123e-3;Both a and b now have the same value, 123 times 10 to the power of -3 (which equals 0.123).


What is maximum length of float in c?

Floating point numbers are always stored according to the underlying architecture. The programming language is immaterial, it must use the same representations as the hardware itself, or at least provide an abstraction of it. C does not provide any abstractions for built-in data types. Most modern computers use the standard IEEE 754 representation, which caters for single-precision (equivalent to float in C), double-precision (double) and extended-precision (long double).

Related Questions

How can you increase the precision of the double in c?

no you cannot increase the precision of double itself in C


How can I declare a double precision variable in Fortran?

To declare a double precision variable in Fortran, you can use the "real(kind8)" declaration. This specifies that the variable should be of double precision, which is typically 8 bytes in size.


Can a double value be assigned to float variable?

THIS IS FOR JAVA i don't know about anything about other languages yes it can be assignedthe syntax is:int (number) = (float) numberFOR EXAMPLE:int = a;a = (float ) 5.5;if the (float) is not there then in Java it gives an error saying precision loss of data type


Are The number of significant digits in a double variable is up to 15?

The maximum number of significant digits in value belonging to the double type is 15. The maximum number of significant digits is called the precision.


Which digit in 10.846 determines precision?

The precision is determined by the POSITION of the number 6 - NOT its value.


What are real constants in java?

"real" numbers, in any programming language, are actually approximations of what is called a "real number" in math. Basically, a number that can handle decimals - but unlike the actual real numbers, of limited precision. In Java, the "real" data types are float, and double. double has greater precision. A "constant" in Java is similar to a variable, but its value can't be changed after it has been assigned a value.


Difference between single precision and double precision?

Single Precision, called "float" in the 'C' language family, and "real" or "real*4" in Fortan. This is a binary format that occupies 32 bits (4 bytes) and its significand has a precision of 24 bits (about 7 decimal digits). Double Precision called "double" in the C language family, and "double precision" or "real*8" in Fortran. This is a binary format that occupies 64 bits (8 bytes) and its significand has a precision of 53 bits (about 16 decimal digits). Regards, Prabhat Mishra


What is precision resistor?

A precision resistor is a resistor that has an actual value that is very close (or precise) to its nominal (or stated value). Therefore, precision resistors have a very degree of accuracy of being very close to their nominal values.


What error occurs when a real value is attempted to be assigned to an integer variable?

real value neededA compile time error i.e ..Error: possible loss of precision: double, required: intNone, it will converted automagically.


what is the difference between accuracy and precision?

''Accuracy is the degree of closeness to true value. Precision is the degree to which an instrument or process will repeat the same value. In other words, accuracy is the degree of veracity while precision is the degree of reproducibility.


What differecne between the accuracy and precision?

Accuracy is how close the value that is measured to a true or standard value. While precision is referred as the degree of nearness of the measured values to one another in a repeated same value.


How do you write a floating point variable in c?

You declare a floating point variable using the float or double keyword for a single- or double-precision floating point variable, respectively:float a;double b;You reference a floating-point variable just like any other scalar variable by using the variable's name in a compatible expression, e.g.a += 2;b /= a;Floating point literals use a period for the decimal point, no "thousands separator," and use the letter 'e' to denote a power of ten, e.g.a = 0.123;b = 123e-3;Both a and b now have the same value, 123 times 10 to the power of -3 (which equals 0.123).