Home > Contents > Index >  
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

CALCULATOR.GO

Calculates the value of an expression.

Syntax

Parameters

VALUE (required)
Input parameter. Postfix expression as a string with the following format:

"opreand1 operand2 ... operandn opchar"

where operand1, operand2, ..., operandn are one or more operands, and opchar is one of the following operator characters or strings:

+
-
*
/
%
=
!=
LT
GT
LTE
GTE
AND
OR
NOT

All values are separated by spaces, and the entire VALUE input string is contained within double quotes.

VARNAME (required)
Input and output parameter. As input, name of a string that holds the output that results from evaluating the expression.

Description

The value is computed using reverse polish notation. Numbers in the expression string are pushed onto a stack. Operations pop numbers off the stack as needed and push the result. The final answer is the top element of the stack.

Example

   Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.