org.pentaho.reporting.libraries.formula.function.math
Class ModFunction

java.lang.Object
  extended by org.pentaho.reporting.libraries.formula.function.math.ModFunction
All Implemented Interfaces:
java.io.Serializable, Function

public class ModFunction
extends java.lang.Object
implements Function

This function returns the remainder when one number is divided by another number.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
ModFunction()
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 java.lang.String getCanonicalName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModFunction

public ModFunction()
Method Detail

evaluate

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

getCanonicalName

public java.lang.String getCanonicalName()
Specified by:
getCanonicalName in interface Function