Examples of todouble()


Examples of plan_runner.conversion.NumericConversion.toDouble()

  public void inverseNumber() {
    if (_wrapper instanceof NumericConversion) {
      final NumericConversion makis = (NumericConversion) _wrapper;
      // double temp = makis.toDouble((Number) _constant);
      final double val = ((Number) _constant).doubleValue();
      final double temp = makis.toDouble(new Double(val));
      _constant = (T) makis.fromDouble(1.0 / temp);
    }
  }

  @Override
View Full Code Here

Examples of plan_runner.conversion.NumericConversion.toDouble()

  @Override
  public boolean isNegative() {
    if (_wrapper instanceof NumericConversion) {
      final NumericConversion makis = (NumericConversion) _wrapper;
      final double temp = makis.toDouble(_constant);
      return (temp < 0);
    }
    return false;
  }
View Full Code Here

Examples of plan_runner.conversion.NumericConversion.toDouble()

  public T eval(List<String> tuple) {
    double result = 1;
    for (final ValueExpression factor : _veList) {
      final Object currentVal = factor.eval(tuple);
      final NumericConversion currentType = (NumericConversion) factor.getType();
      result *= currentType.toDouble(currentVal);
    }
    return _wrapper.fromDouble(result);
  }

  @Override
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.