예제 #1
0
        public static bool IsNaN(this double value)
        {
            DoubleHelper.NanUnion nanUnion = new DoubleHelper.NanUnion();
            nanUnion.DoubleValue = value;
            ulong num1 = nanUnion.UintValue & 18442240474082181120UL;
            ulong num2 = nanUnion.UintValue & 4503599627370495UL;

            if ((long)num1 == 9218868437227405312L || (long)num1 == -4503599627370496L)
            {
                return((long)num2 != 0L);
            }
            return(false);
        }
예제 #2
0
 public static bool IsNaN(this double value)
 {
     DoubleHelper.NanUnion nanUnion = new DoubleHelper.NanUnion();
     nanUnion.DoubleValue = value;
     ulong num1 = nanUnion.UintValue & 18442240474082181120UL;
     ulong num2 = nanUnion.UintValue & 4503599627370495UL;
     if ((long)num1 == 9218868437227405312L || (long)num1 == -4503599627370496L)
         return (long)num2 != 0L;
     return false;
 }