public static BigDecimal /*!*/ Div(RubyContext /*!*/ context, BigDecimal /*!*/ self, BigDecimal /*!*/ other) { if (BigDecimal.IsFinite(other)) { BigDecimal.Config config = GetConfig(context); BigDecimal remainder; BigDecimal result = BigDecimal.Divide(config, self, other, 0, out remainder); if (BigDecimal.IsFinite(result)) { return(BigDecimal.IntegerPart(config, result)); } } return(BigDecimal.NaN); }
public static BigDecimal /*!*/ Fix(RubyContext /*!*/ context, BigDecimal /*!*/ self) { return(BigDecimal.IntegerPart(GetConfig(context), self)); }