Beispiel #1
0
        public static object LessThan(BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
        {
            int?c = self.CompareBigDecimal(other);

            if (c.HasValue)
            {
                return(c.Value < 0);
            }
            else
            {
                return(null);
            }
        }
Beispiel #2
0
        public static object GreaterThan(RubyContext /*!*/ context, BigDecimal /*!*/ self, [NotNull] BigInteger /*!*/ other)
        {
            int?c = self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));

            if (c.HasValue)
            {
                return(c.Value > 0);
            }
            else
            {
                return(null);
            }
        }
Beispiel #3
0
        public static object GreaterThanOrEqual(RubyContext /*!*/ context, BigDecimal /*!*/ self, double other)
        {
            int?c = self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));

            if (c.HasValue)
            {
                return(c.Value >= 0);
            }
            else
            {
                return(null);
            }
        }
Beispiel #4
0
        public static object GreaterThanOrEqual(BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
        {
            int?c = self.CompareBigDecimal(other);

            if (c.HasValue)
            {
                return(c.Value >= 0);
            }
            else
            {
                return(null);
            }
        }
Beispiel #5
0
        public static object LessThan(RubyContext /*!*/ context, BigDecimal /*!*/ self, int other)
        {
            int?c = self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));

            if (c.HasValue)
            {
                return(c.Value < 0);
            }
            else
            {
                return(null);
            }
        }
Beispiel #6
0
 public static object GreaterThanOrEqual(RubyContext/*!*/ context, BigDecimal/*!*/ self, [NotNull]BigInteger/*!*/ other) {
     return GreaterThanOrEqualResult(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other)));
 }
Beispiel #7
0
 public static object GreaterThan(RubyContext/*!*/ context, BigDecimal/*!*/ self, double other) {
     return GreaterThenResult(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other)));
 }
Beispiel #8
0
 public static object LessThanOrEqual(BigDecimal/*!*/ self, [NotNull]BigDecimal/*!*/ other) {
     int? c = self.CompareBigDecimal(other);
     if (c.HasValue) {
         return c.Value <= 0;
     } else {
         return null;
     }
 }
Beispiel #9
0
 public static object GreaterThan(RubyContext/*!*/ context, BigDecimal/*!*/ self, int other) {
     int? c = self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));
     if (c.HasValue) {
         return c.Value > 0;
     } else {
         return null;
     }
 }
Beispiel #10
0
 public static object Compare(RubyContext/*!*/ context, BigDecimal/*!*/ self, double other) {
     return self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));
 }
Beispiel #11
0
 public static object Compare(BigDecimal/*!*/ self, [NotNull]BigDecimal/*!*/ other) {
     return self.CompareBigDecimal(other);
 }
Beispiel #12
0
 public static object GreaterThan(BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
 {
     return(GreaterThenResult(self.CompareBigDecimal(other)));
 }
Beispiel #13
0
 public static object Compare(RubyContext /*!*/ context, BigDecimal /*!*/ self, int other)
 {
     return(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other)));
 }
Beispiel #14
0
 public static object Compare(BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
 {
     return(self.CompareBigDecimal(other));
 }
Beispiel #15
0
 public static object LessThanOrEqual(BigDecimal/*!*/ self, [NotNull]BigDecimal/*!*/ other) {
     return LessThanOrEqualResult(self.CompareBigDecimal(other));
 }
Beispiel #16
0
 public static object LessThanOrEqual(RubyContext/*!*/ context, BigDecimal/*!*/ self, double other) {
     return LessThanOrEqualResult(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other)));
 }
Beispiel #17
0
 public static object GreaterThan(RubyContext /*!*/ context, BigDecimal /*!*/ self, double other)
 {
     return(GreaterThenResult(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other))));
 }
Beispiel #18
0
 public static object Compare(RubyContext/*!*/ context, BigDecimal/*!*/ self, [NotNull]BigInteger/*!*/ other) {
     return self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));
 }
Beispiel #19
0
 public static object LessThan(RubyContext /*!*/ context, BigDecimal /*!*/ self, [NotNull] BigInteger /*!*/ other)
 {
     return(LessThenResult(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other))));
 }
Beispiel #20
0
 public static object GreaterThan(BigDecimal/*!*/ self, [NotNull]BigDecimal/*!*/ other) {
     int? c = self.CompareBigDecimal(other);
     if (c.HasValue) {
         return c.Value > 0;
     } else {
         return null;
     }
 }
Beispiel #21
0
 public static object LessThanOrEqual(BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
 {
     return(LessThanOrEqualResult(self.CompareBigDecimal(other)));
 }
Beispiel #22
0
 public static object LessThan(RubyContext/*!*/ context, BigDecimal/*!*/ self, [NotNull]BigInteger/*!*/ other) {
     int? c = self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));
     if (c.HasValue) {
         return c.Value < 0;
     } else {
         return null;
     }
 }
Beispiel #23
0
 public static object LessThanOrEqual(RubyContext /*!*/ context, BigDecimal /*!*/ self, int other)
 {
     return(LessThanOrEqualResult(self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other))));
 }
Beispiel #24
0
 public static object LessThanOrEqual(RubyContext/*!*/ context, BigDecimal/*!*/ self, double other) {
     int? c = self.CompareBigDecimal(BigDecimal.Create(GetConfig(context), other));
     if (c.HasValue) {
         return c.Value <= 0;
     } else {
         return null;
     }
 }
Beispiel #25
0
 public static object GreaterThan(BigDecimal/*!*/ self, [NotNull]BigDecimal/*!*/ other) {
     return GreaterThenResult(self.CompareBigDecimal(other));
 }