org.pentaho.reporting.libraries.formula.function.math
Class OddFunction
java.lang.Object
org.pentaho.reporting.libraries.formula.function.math.OddFunction
- All Implemented Interfaces:
- Serializable, Function
public class OddFunction
- extends Object
- implements Function
This function returns the rounding a number up to the nearest odd integer,
where "up" means "away from 0".
- Author:
- Cedric Pronzato
- See Also:
- Serialized Form
OddFunction
public OddFunction()
evaluate
public TypeValuePair evaluate(FormulaContext context,
ParameterCallback parameters)
throws EvaluationException
- Specified by:
evaluate
in interface Function
- Throws:
EvaluationException
getCanonicalName
public String getCanonicalName()
- Specified by:
getCanonicalName
in interface Function