public class FormulaCalculator extends Object
Formula| Constructor and Description |
|---|
FormulaCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
calculateFormula(Stack expression)
Calculates the value of calcStac This is handled by
running through the stack, adding operands to tempstack until
an operator PTG is found.
|
static Ptg |
calculateFormulaPtg(Stack expression)
Calculates the final Ptg result of calcStack.
|
public static Object calculateFormula(Stack expression) throws FunctionNotSupportedException
FunctionNotSupportedExceptionpublic static Ptg calculateFormulaPtg(Stack expression) throws FunctionNotSupportedException
FunctionNotSupportedExceptionCopyright © 2002–2019 Starter Inc.. All rights reserved.