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
|
calculatecalculate, calculate, isPure, preprocess, setKnowledgeBaseprotected long calculateLong(long dividend,
long divisor)
AbstractBinaryIntegerArithmeticOperatorcalculateLong in class AbstractBinaryIntegerArithmeticOperatorCopyright © 2024. All rights reserved.