Beispiel #1
0
        public static RubyArray /*!*/ DivMod(RubyContext /*!*/ context, BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
        {
            BigDecimal div, mod;

            BigDecimal.DivMod(GetConfig(context), self, other, out div, out mod);
            return(RubyOps.MakeArray2(div, mod));
        }
Beispiel #2
0
        public static BigDecimal /*!*/ Modulo(RubyContext /*!*/ context, BigDecimal /*!*/ self, [NotNull] BigDecimal /*!*/ other)
        {
            BigDecimal div, mod;

            BigDecimal.DivMod(GetConfig(context), self, other, out div, out mod);
            return(mod);
        }