Package com.graphbuilder.math.func
Class RoundFunction
java.lang.Object
com.graphbuilder.math.func.RoundFunction
- All Implemented Interfaces:
Function
The round function.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptNumParam(int numParam) Returns true only for 1 parameter, false otherwise.doubleof(double[] d, int numParam) Returns the value at d[0] rounded to the nearest integer value.toString()
-
Constructor Details
-
RoundFunction
public RoundFunction()
-
-
Method Details
-
of
public double of(double[] d, int numParam) Returns the value at d[0] rounded to the nearest integer value. If the value exceeds the capabilities of long precision then the value itself is returned. -
acceptNumParam
public boolean acceptNumParam(int numParam) Returns true only for 1 parameter, false otherwise.- Specified by:
acceptNumParamin interfaceFunction
-
toString
-