org.jfree.formula.function.math

Class OddFunction

Implemented Interfaces:
Function, Serializable

public class OddFunction
extends java.lang.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

Constructor Summary

OddFunction()

Method Summary

TypeValuePair
evaluate(FormulaContext context, ParameterCallback parameters)
String
getCanonicalName()

Constructor Details

OddFunction

public OddFunction()

Method Details

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
            throws EvaluationException
Specified by:
evaluate in interface Function

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in interface Function