Esempio n. 1
0
        public static RatNumber operator /(RatNumber a, RatNumber b)
        {
            RatNumber div = new RatNumber(a.A * b.B, a.B * b.A);

            div.ReduceFraction();
            return(div);
        }
Esempio n. 2
0
        public static RatNumber operator *(RatNumber a, RatNumber b)
        {
            RatNumber mul = new RatNumber(a.A * b.A, a.B * b.B);

            mul.ReduceFraction();
            return(mul);
        }