Exemple #1
0
 public static int Compare(double x, mpz_t y)
 {
     return -y.CompareTo(x);
 }
Exemple #2
0
 public static int Compare(mpz_t x, double y)
 {
     return x.CompareTo(y);
 }
Exemple #3
0
 public static int Compare(ulong x, mpz_t y)
 {
     return -y.CompareTo(x);
 }
Exemple #4
0
 public static int Compare(mpz_t x, ulong y)
 {
     return x.CompareTo(y);
 }
Exemple #5
0
 public static int Compare(object x, mpz_t y)
 {
     return -y.CompareTo(x);
 }
Exemple #6
0
        //public int CompareAbsTo(decimal other)
        //{
        //    return mpir.mpz_cmpabs_d(this, (double)other);
        //}

        public static int Compare(mpz_t x, object y)
        {
            return x.CompareTo(y);
        }