public static double unsignedLongToDouble(long val) {
		double dVal = val & 0x7FFF_FFFF_FFFF_FFFFL;
		if (val < 0) {
			dVal += 0x1.0p63;
		}
		return dVal;
	}
Convert a long, treated as unsigned, to a double

@param val the long to treat as unsigned and convert
@return the double
Ghidra/Framework/Generic/src/main/java/ghidra/util/NumericUtilities.java