Package org.apache.pig.piggybank.evaluation.math

Examples of org.apache.pig.piggybank.evaluation.math.IEEEremainder


          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
      }
  
   public void testIEEEremainder() throws Exception {
          EvalFunc<DataAtom> IEEEremainder = new IEEEremainder();
          Tuple tup = new Tuple(2);
          tup.setField(0, -0.5);
          tup.setField(1,0.6);
          DataAtom output = new DataAtom();
          IEEEremainder.exec(tup, output);
          double expected = Math.IEEEremainder(-0.5,0.6);
          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
      }
View Full Code Here

TOP

Related Classes of org.apache.pig.piggybank.evaluation.math.IEEEremainder

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.