Mega Code Archive

 
Categories / Java Book / 003 Essential Classes
 

0187 Convert BigInteger to primitive types

double doubleValue() Converts this BigInteger to a double. float floatValue() Converts this BigInteger to a float. int intValue() Converts this BigInteger to an int. long longValue() Converts this BigInteger to a long. byte[] toByteArray() Returns a byte array containing the two's-complement representation of this BigInteger.