com.japisoft.formula.operator_hp.unary
Class PERCENTOperator

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

public class PERCENTOperator
extends java.lang.Object
implements UnaryOperator

a% = a / 100 in high precision mode

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

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
PERCENTOperator()
           
 
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

PERCENTOperator

public PERCENTOperator()
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