//reduce fractions private void RefuceFraction() { int nsd = EvclidAlg.Gcd(numerator, denumerator); if (nsd != 1) { numerator = numerator / nsd; denumerator = denumerator / nsd; } }