public final class IntegerDivide extends AbstractBinaryIntegerArithmeticOperator
//
- performs integer division.
The result will be rounded towards zero. e.g. 7 // 2
is rounded down to 3
while
-7 // 2
is rounded up to -3
Constructor and Description |
---|
IntegerDivide() |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateLong(long dividend,
long divisor)
Returns the result of evaluating an arithmetic expression using the two arguments
|
calculate
calculate, calculate, isPure, preprocess, setKnowledgeBase
protected long calculateLong(long dividend, long divisor)
AbstractBinaryIntegerArithmeticOperator
calculateLong
in class AbstractBinaryIntegerArithmeticOperator
Copyright © 2024. All rights reserved.