Package org.projog.core.math.builtin
Class Round
- java.lang.Object
-
- org.projog.core.math.AbstractArithmeticOperator
-
- org.projog.core.math.builtin.Round
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,ArithmeticOperator,PreprocessableArithmeticOperator
public final class Round extends AbstractArithmeticOperator
integer(X)- round X to the nearest integer value.
-
-
Constructor Summary
Constructors Constructor Description Round()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Numericcalculate(Numeric n)-
Methods inherited from class org.projog.core.math.AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
-
-
-
Method Detail
-
calculate
public Numeric calculate(Numeric n)
- Overrides:
calculatein classAbstractArithmeticOperator
-
-