Exemple #1
0
        public static Fraction operator *(Fraction f1, long a)
        {
            Fraction t = new Fraction(f1.nomerator * a, f1.denominator);

            return(t);
        }
Exemple #2
0
        public static Fraction operator -(Fraction f1)
        {
            Fraction t = new Fraction(-f1.nomerator, f1.denominator);

            return(t);
        }
Exemple #3
0
        public static Fraction operator *(Fraction f1, Fraction f2)
        {
            Fraction t = new Fraction(f1.nomerator * f2.nomerator, f1.denominator * f2.denominator);

            return(t);
        }