/// <summary>Fraction</summary> public void InitFraction(int numerator, int denominator) { this.numerator = new Value(numerator, Restrictions.dontSetToFraction); this.denominator = new Value(denominator, Restrictions.dontSetToFraction); this.deciValue = ((double)numerator / denominator); this.primaryNumType = NumberType.fractional; rational = new MathNet.Numerics.Rational(numerator, denominator); }