List of utility methods to do Double to Long
long | doubleToRawLongBits(double d) double To Raw Long Bits return Double.doubleToRawLongBits(d);
|
long | doubleToRawLongBits(double value) Encode a double in a long. return Double.doubleToRawLongBits(value);
|
long | doubleToS390LongBits(double ieeeDouble) Converts an IEEE double to an S390 double (as a long). long ieeeLongBits = Double.doubleToLongBits(ieeeDouble); boolean positive = ((ieeeLongBits & DOUBLE_SIGN_MASK) == 0); if ((ieeeLongBits & 0x7fffffffffffffffL) == 0) { return ieeeLongBits; long exponent = ieeeLongBits & DOUBLE_EXPONENT_MASK; exponent = exponent >>> 52; exponent = exponent - DOUBLE_BIAS; ... |
long | doubleToSortableLong(double val) Converts a double value to a sortable signed long .
return sortableDoubleBits(Double.doubleToLongBits(val)); |
long | doubleToSortableLong(double value) Converts a sortable long to double. long bits = Double.doubleToRawLongBits(value); return bits ^ (bits >> 63) & Long.MAX_VALUE; |