コード例 #1
0
        public static void SwapDouble(
            ref double value)
        {
            var union = new DoubleUnion(value);

            Swap(ref union.Integer);
            value = union.Real;
        }
コード例 #2
0
        public static ulong DoubleToUInt64(double value)
        {
            var union = new DoubleUnion(value);

            return(union.Integer);
        }
コード例 #3
0
        public static double DoubleFromUInt64(ulong bits)
        {
            var union = new DoubleUnion(bits);

            return(union.Real);
        }