Class Add

    • Constructor Detail

      • Add

        public Add()
    • Method Detail

      • add

        public java.lang.Object add​(java.lang.Object param1,
                                    java.lang.Object param2)
                             throws EvaluationException
        Adds two numbers together. The parameters can be of type Number, Complex, or String. If a certain combination of types is not supported, a EvaluationException is thrown.
        Parameters:
        param1 - The first parameter to be added.
        param2 - The second parameter to be added.
        Returns:
        The sum of param1 and param2, or concatenation of the two if they are Strings.
        Throws:
        EvaluationException - if the calculation cannot be performed
      • add

        public static java.lang.Double add​(java.lang.Number d1,
                                           java.lang.Number d2)