List of utility methods to do Double Convert to
short | double2short(double d) doubleshort return (short) (((long) d << 48) >> 48); |
String | double2sortableStr(double val) doublesortable Str long f = Double.doubleToRawLongBits(val); if (f < 0) f ^= 0x7fffffffffffffffL; return long2sortableStr(f); |