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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected longcalculateLong(long numerator, long divider) Returns the result of evaluating an arithmetic expression using the two argumentsMethods inherited from class org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
calculateMethods inherited from class org.projog.core.math.AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
Constructor Details
-
Remainder
public Remainder()
-
-
Method Details
-
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
-