BigInteger.doubleValue

Converts this BigInteger to a {@code double}. This conversion is similar to the <i>narrowing primitive conversion</i> from {@code double} to {@code float} as defined in <cite>The Java&trade; Language Specification</cite>: if this BigInteger has too great a magnitude to represent as a {@code double}, it will be converted to {@link Double#NEGATIVE_INFINITY} or {@link Double#POSITIVE_INFINITY} as appropriate. Note that even when the return value is finite, this conversion can lose information about the precision of the BigInteger value.

@return this BigInteger converted to a {@code double}. @jls 5.1.3 Narrowing Primitive Conversion

class BigInteger
double
doubleValue
()

Meta