answersLogoWhite

0

no you cannot increase the precision of double itself in C

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

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).


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 are the types of data type?

Character or small integerShort IntegerIntegerLong integerBooleanFloating point numbersDouble precision floating point numberLong double precision floating point numberWide characterTo get a better idea on C++ data types, see related links below.


What is mantissa of double float?

The mantissa, or significand, of a double-precision floating-point number (double float) represents the significant digits of the number. In the IEEE 754 standard for double precision, the mantissa is typically a 53-bit binary fraction, which allows for high precision in representing real numbers. The value of the double is derived from the mantissa, the exponent, and the sign bit, following the formula: ((-1)^{\text{sign}} \times \text{mantissa} \times 2^{\text{exponent}}). This structure enables the representation of a wide range of values with significant precision.


What is cdbl?

I believe it is a way to convert data in Classic ASP to double precision.

Related Questions

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 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).


How many bytes for double in c?

In C, a double typically occupies 8 bytes (64 bits) of memory. This size can vary depending on the platform and compiler, but the C standard specifies that a double must provide at least as much precision as a float and is often implemented as a double-precision floating-point format. Most modern systems adhere to this standard, making 8 bytes the common size for double.


What is another word for float in c plus plus?

double, but double is nearly twice the precision of float, so its not really the same thing.


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.


What has the author C C Wei written?

C. C. Wei has written: 'Precision bidding in bridge' -- subject(s): Contract bridge 'Simplified Precision Bridge'


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).


When precision increases does uncertainty increase or decrease?

I would assume that with am increase in precision there would be an increase in accuracy and less variables. Therefore I would say that there would be a decrease in uncertainty. The more attention to detail the less chance for mistakes.


What is the valid floating in c plus plus?

From the C++ standard: "There are three floating point types: float, double, and long double. The type double provides at least as much precision as float, and the type long double provides at least as much precision as double. The set of values of the type float is a subset of the set of values of the type double; the set of values of the type double is a subset of the set of values of the type long double. The value representation of floating-point types is implementation-defined." C++ does not impose any limits upon floating point values because, like all fundamental types, floats are imported from the C standard. However, you can determine those limits at compile time by querying the std::numeric_limits class template from the <limits> header.


Method of storing floating numbers in c plus plus in memory?

The C++ standard defines two built-in types for floating point numbers: the float and the double. The float (or single precision number) is 32 bits long while a double (or double precision number) is 64 bits long. The bits can be broken down into three parts: the sign (positive or negative); a biased exponent; and a fraction (the mantissa). See the related links, below, for more information.


What are the types of data type?

Character or small integerShort IntegerIntegerLong integerBooleanFloating point numbersDouble precision floating point numberLong double precision floating point numberWide characterTo get a better idea on C++ data types, see related links below.


Which numeric type field will you choose to store fractional values?

Floating point types are used to represent fractional numbers. In both C and Java the names for these types are float and double. double offers greater precision than float.