**Contents**show

## What is double MaxValue?

Represents the largest possible value of a Double. This field is constant. public: double MaxValue = **1.7976931348623157E+308**; C# Copy.

## What is double Positive_infinity?

static double POSITIVE_INFINITY − This is **the constant holding the positive infinity of type double**. static int SIZE − This is the number of bits used to represent a double value.

## What does double doubleValue do in Java?

The doubleValue() method of Double class is a **built in method to return the value specified by the calling object as double after type casting**. Return Value: It return the value of DoubleObject as double.

## Should I use float or double Java?

You should **use double instead of float for precise** calculations, and float instead of double when using less accurate calculations. Float contains only decimal numbers, but double contains an IEEE754 double-precision floating point number, making it easier to contain and computate numbers more accurately.

## Is double the same as float?

**Double is more precise than float** and can store 64 bits, double of the number of bits float can store. Double is more precise and for storing large numbers, we prefer double over float. … Unless we do need precision up to 15 or 16 decimal points, we can stick to float in most applications, as double is more expensive.

## What is difference between float and double in C++?

What’s the difference ? **double has 2x more precision then float**. float is a 32 bit IEEE 754 single precision Floating Point Number1 bit for the sign, (8 bits for the exponent, and 23* for the value), i.e. float has 7 decimal digits of precision.

## What is data type double?

double: The double data type is **a double-precision 64-bit IEEE 754 floating point**. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, Formats, and Values section of the Java Language Specification. For decimal values, this data type is generally the default choice.

## Can we convert double to string in Java?

We can convert double to String in java using **String.** **valueOf() and Double**. toString() methods.