com.japisoft.formula.operator_hp.unary
Class ABSOperator

java.lang.Object
  extended bycom.japisoft.formula.operator_hp.unary.ABSOperator
All Implemented Interfaces:
UnaryOperator

public class ABSOperator
extends java.lang.Object
implements UnaryOperator

[ A - B ] = -A + B if ( A - B < 0 ) else A - B in HighPrecision

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
ABSOperator()
           
 
Method Summary
 java.lang.Object eval(OperatorContext context)
          Eval this expression and return the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

ABSOperator

public ABSOperator()
Method Detail

eval

public java.lang.Object eval(OperatorContext context)
                      throws EvaluateException
Description copied from interface: UnaryOperator
Eval this expression and return the result

Specified by:
eval in interface UnaryOperator
Parameters:
context - A context for getting the operand value
Returns:
The operator result
Throws:
EvaluateException