Package org.zkoss.zss.engine.xel

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


 
  /* return decimal */
  private static long hexToDec(String hex) {
    int places = hex.length();
    if(places > 10) {
      throw new SSErrorXelException(SSError.NUM);
    } else {
      if(!isHex(hex)) {
        throw new SSErrorXelException(SSError.NUM);
      }
      Long result = Long.valueOf(hex, 16);
      if(result.longValue() > Long.valueOf("7fffffffff", 16).longValue()) {
        result = Long.valueOf(result.longValue()-Long.valueOf("10000000000", 16).longValue());
      }
View Full Code Here

     *           java.lang.math atan() return value is (-pi/2, pi/2]
     * so instead use atan2()
     */
    if(img == 0 && real == 0) //What is the theta of "0+0i"? Should return #DIV/0!
    {
      throw new SSErrorXelException(SSError.DIV0);
    }
    else{
      Double result = new Double(Math.atan2(img, real));
      return result;
    }
View Full Code Here

 
  /* return decimal */
  private static int octToDec(String oct) {
    int places = oct.length();
    if(places > 10) {
      throw new SSErrorXelException(SSError.NUM);
    } else {
      if(!isOct(oct)) {
        throw new SSErrorXelException(SSError.NUM);
      }
      Integer result = Integer.valueOf(oct, 8);
      if(result.intValue() > 536870911) {
        result = Integer.valueOf(result.intValue() - 1073741824);
      }
View Full Code Here

      case 2:
        return new Integer(weekdayFromMonday(cal.get(Calendar.DAY_OF_WEEK)));
      case 3:
        return new Integer(weekdayFromMonday(cal.get(Calendar.DAY_OF_WEEK))-1);
      default:
        throw new SSErrorXelException(SSError.NUM);
       
    }
  }
View Full Code Here

  public Range clone(Sheet sheet, int rowoff, int coloff) {
    return this;
  }

  public void copy(Range dst) {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

  public void copy(Range dst) {
    throw new SSErrorXelException(SSError.REF);
  }

  public void cut(Range dst) {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

  public void cut(Range dst) {
    throw new SSErrorXelException(SSError.REF);
  }

  public int getBottom() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

  public int getBottom() {
    throw new SSErrorXelException(SSError.REF);
  }

  public Collection getCells() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

  public Collection getCells() {
    throw new SSErrorXelException(SSError.REF);
  }

  public Cell[][][] getCellsArray() {
    throw new SSErrorXelException(SSError.REF);
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.xel.SSErrorXelException

Copyright © 2018 www.massapicom. 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.