Java BigInteger doubleValue() methodThe doubleValue() method of Java BigInteger class is used to convert this BigInteger to a double.This conversion is similar to the narrowing primitive conversion from double to float. Narrowing Primitive Conversion:According to The Java Language Specification, It is defined as ifthisBigInteger has too great magnitude to represent as a double, it will be converted to Double.NEGATIVE_INFINITY or Double.POSITIVE_INFINITY as appropriate. SyntaxReturns:This method returns this BigInteger converted to a double. Note:
|