math.FLOOR implements a binding to the Java function {@link java.lang.Math#floor(double) Math.floor(double)}. Given a single data atom it returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.
Parameters:
value - DataAtom [double].
Return Value:
DataAtom [double]
Return Schema:
floor_inputSchema
Example:
register math.jar; A = load 'mydata' using PigStorage() as ( float1 ); B = foreach A generate float1, math.floor(float1);
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.