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

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

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

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