Package org.projog.core.math.builtin
Class Remainder
- java.lang.Object
-
- org.projog.core.math.AbstractArithmeticOperator
-
- org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
-
- org.projog.core.math.builtin.Remainder
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,ArithmeticOperator,PreprocessableArithmeticOperator
public final class Remainder extends AbstractBinaryIntegerArithmeticOperator
rem- finds the remainder of division of one number by another.The result has the same sign as the dividend (i.e. first argument).
-
-
Constructor Summary
Constructors Constructor Description Remainder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longcalculateLong(long numerator, long divider)Returns the result of evaluating an arithmetic expression using the two arguments-
Methods inherited from class org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
calculate
-
Methods inherited from class org.projog.core.math.AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
-
-
-
Method Detail
-
calculateLong
protected long calculateLong(long numerator, long divider)Description copied from class:AbstractBinaryIntegerArithmeticOperatorReturns the result of evaluating an arithmetic expression using the two arguments- Specified by:
calculateLongin classAbstractBinaryIntegerArithmeticOperator
-
-