Examples of SSErrorXelException


Examples of org.zkoss.zss.engine.xel.SSErrorXelException

   * @return the complementary error function.
   */
  public static Object engineerErfc(Object[] args, XelContext ctx) {
    double x = CommonFns.toNumber(args[0]).doubleValue();
    if(x < 0) {
      throw new SSErrorXelException(SSError.NUM);
    }
    try {
      double erfc = 1 - Erf.erf(x);
      return new Double(erfc);
    } catch (MathException e) {
      throw new SSErrorXelException(SSError.VALUE);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.