public class floor extends DefaultArithFunction
Function: math.floor(N)
: encapsulates java Math.floor(N),
returns the largest double value that is not greater than the argument and is
equal to a mathematical integer.
Examples:
math.floor(3.1)
: returns 3.math.floor(3.9)
: returns 3.Random
,
ceil
,
Serialized FormConstructor and Description |
---|
floor() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkArity(int a)
returns true if a is a good number of arguments for the function
|
double |
evaluate(TransitionSystem ts,
Term[] args)
evaluates/computes the function based on the args
|
java.lang.String |
getName()
returns the name of the function
|
allowUngroundTerms, toString
public java.lang.String getName()
ArithFunction
getName
in interface ArithFunction
getName
in class DefaultArithFunction
public double evaluate(TransitionSystem ts, Term[] args) throws java.lang.Exception
ArithFunction
evaluate
in interface ArithFunction
evaluate
in class DefaultArithFunction
java.lang.Exception
public boolean checkArity(int a)
ArithFunction
checkArity
in interface ArithFunction
checkArity
in class DefaultArithFunction