public static void SwapDouble( ref double value) { var union = new DoubleUnion(value); Swap(ref union.Integer); value = union.Real; }
public static ulong DoubleToUInt64(double value) { var union = new DoubleUnion(value); return(union.Integer); }
public static double DoubleFromUInt64(ulong bits) { var union = new DoubleUnion(bits); return(union.Real); }