consider ```Util.longToBytes(Double.doubleToLongBits(val));```