static MathContext() { _FCS = CultureInfo.CurrentCulture; BASIC_DEFAULT = new MathContext(9, RoundingMode.HalfUp); Decimal64 = new MathContext(7, RoundingMode.HalfEven); Decimal64X = new MathContext(16, RoundingMode.HalfEven); Decimal128 = new MathContext(34, RoundingMode.HalfEven); Unlimited = new MathContext(0, RoundingMode.HalfUp); }
public bool Equals(MathContext other) { return(other.Precision == Precision && other.RoundingMode == RoundingMode); }