public final class Abs extends AbstractUnaryArithmeticOperator
abs
- returns the absolute value of a numeric argument.Constructor and Description |
---|
Abs() |
Modifier and Type | Method and Description |
---|---|
protected double |
calculateDouble(double n)
Returns the result of evaluating an arithmetic expression using the specified argument
|
protected long |
calculateLong(long n)
Returns the result of evaluating an arithmetic expression using the specified argument
|
calculate
calculate, calculate, isPure, preprocess, setKnowledgeBase
protected double calculateDouble(double n)
AbstractUnaryArithmeticOperator
calculateDouble
in class AbstractUnaryArithmeticOperator
protected long calculateLong(long n)
AbstractUnaryArithmeticOperator
calculateLong
in class AbstractUnaryArithmeticOperator
Copyright © 2024. All rights reserved.