public BigInteger getBigInteger() {
		int signum = (signed && testBit(bitLength - 1)) ? -1 : 1;

		// Get magnitude
		int numBytes = ((bitLength - 1) / 8) + 1;
		long tmpVal = getValue();
		if (signed && tmpVal < 0) {
			tmpVal = -tmpVal;
		}
		byte[] data = new byte[numBytes];
		for (int i = (numBytes - 1); i >= 0; --i) {
			data[i] = (byte) tmpVal;
			tmpVal >>= 8;
		}

		return new BigInteger(signum, data);
	}
Returns the BigInteger representation of the value.

@return new BigInteger representation of the value
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/scalar/Scalar.java