com.japisoft.formula.lib.standard
Class RoundFunction

java.lang.Object
  extended bycom.japisoft.formula.lib.Function
      extended bycom.japisoft.formula.lib.standard.AbstractFunction
          extended bycom.japisoft.formula.lib.standard.RoundFunction

public class RoundFunction
extends AbstractFunction

The closest long to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type long. In other words, the result is equal to the value of the expression:

More information at : http://www.japisoft.com

Version:
1.0
Author:
(c) 2002 JAPISoft

Field Summary
 
Fields inherited from class com.japisoft.formula.lib.standard.AbstractFunction
ANY
 
Fields inherited from class com.japisoft.formula.lib.Function
anyArguments
 
Constructor Summary
RoundFunction()
           
 
Method Summary
 Variant evaluate(ListOfArgument args)
           
 
Methods inherited from class com.japisoft.formula.lib.standard.AbstractFunction
getFirstArgument, getSecondArgument, hasDoubleArgument
 
Methods inherited from class com.japisoft.formula.lib.Function
getArgsType, getFunctionName, matchArgument, setArgsType, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoundFunction

public RoundFunction()
Method Detail

evaluate

public Variant evaluate(ListOfArgument args)
Specified by:
evaluate in class Function
Returns:
an evaluation of the function for the following args.