Code example for BigInteger

Methods: intValue

0
//		int floatBits = 
//			(floatBytes[0] << 24) 
//				| (floatBytes[1] << 16) 
//				| (floatBytes[2] << 8) 
//				| (floatBytes[3]); 
		BigInteger floatBits = new BigInteger(floatBytes);
		return new Float(Float.intBitsToFloat(floatBits.intValue()));
	} 
 
	/** 
	 * Read a Big Integer (64 bit int) from the byte stream. 
	 * @return a BigInteger 
	 */ 
	private Object readBigInteger() {
		byte[] longintBytes = new byte[8];
		longintBytes[0] = bytes[streamPosition++];
		longintBytes[1] = bytes[streamPosition++];
		longintBytes[2] = bytes[streamPosition++];
		longintBytes[3] = bytes[streamPosition++];
		longintBytes[4] = bytes[streamPosition++];
Experience pair programming with AI  Get Codota for Java