Esempio n. 1
0
 public double Divide(double a, double b)
 {
     if (b == 0)
     {
         return(0);
     }
     else
     {
         Math MathA = new Math(a, b);
         return(MathA.Calculation("/"));
     }
 }
Esempio n. 2
0
        public double Minus(double a, double b)
        {
            Math MathA = new Math(a, b);

            return(MathA.Calculation("-"));
        }
Esempio n. 3
0
        public double Multiply(double a, double b)
        {
            Math MathA = new Math(a, b);

            return(MathA.Calculation("*"));
        }
Esempio n. 4
0
        public double Add(double a, double b)
        {
            Math MathA = new Math(a, b);

            return(MathA.Calculation("+"));
        }