static long DoubleToInt64Bits(double value) { return BitConverter.ToInt64(BitConverter.GetBytes(value), 0); }