Package org.apache.imperius.spl.parser.expressions.impl

Examples of org.apache.imperius.spl.parser.expressions.impl.DoubleConstant


      v.clear();
      v.add(new FloatConstant(fn1));
      Expression e4 = new Round(v,true);

      v.clear();
      v.add(new DoubleConstant(dn1));
      Expression e5 = new Round(v,true);

      assertTrue(
        (Math.round(sn1) - ((Number) e1.evaluate()).shortValue())
          == 0);
View Full Code Here


      v.clear();
      v.add(new FloatConstant(fn1));
      Expression e4 = new Rint(v,true);

      v.clear();
      v.add(new DoubleConstant(dn1));
      Expression e5 = new Rint(v,true);

      assertTrue(
        (Math.rint(sn1) - ((Number) e1.evaluate()).shortValue())
          == 0);
View Full Code Here

      v.clear();
      v.add(new FloatConstant(fn1));
      Expression e4 = new Floor(v,true);

      v.clear();
      v.add(new DoubleConstant(dn1));
      Expression e5 = new Floor(v,true);

      assertTrue(
        (Math.floor(sn1) - ((Number) e1.evaluate()).shortValue())
          == 0);
View Full Code Here

      v.clear();
      v.add(new FloatConstant(fn1));
      Expression e4 = new Ceiling(v,true);

      v.clear();
      v.add(new DoubleConstant(dn1));
      Expression e5 = new Ceiling(v,true);

      assertTrue(
        (Math.ceil(sn1) - ((Number) e1.evaluate()).shortValue())
          == 0);
View Full Code Here

            v.clear();
            v.add(new FloatConstant(fn1));
            Expression e4 = new Log10(v,true);

            v.clear();
            v.add(new DoubleConstant(dn1));
            Expression e5 = new Log10(v,true);

           assertTrue(((Number) e1.evaluate()).doubleValue()==1.4771212547196624);
           assertTrue(((Number) e2.evaluate()).doubleValue()==2.9999999999999996);
           assertTrue(((Number) e3.evaluate()).doubleValue()==3.301029995663981);
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.expressions.impl.DoubleConstant

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.