FLOAT
expressions return floating point
(fractional) numbers. The
FLOAT CONST
expression returns the same floating-point
number, specified in the
VALUE
attribute of an
EXPRNODE
sub-element.
For example, using a
FLOAT CONST
expression within a
VOID CREATE
expression adds the new property whose
value is the constant specified to each record processed.
See the
EXPRESSION
element for DTD and attribute information.
This example deletes discount properties if they are less than 20%.
The
FLOAT CONST
expression defines the value for the
percentage.
<EXPRESSION TYPE="VOID" NAME="IF"> <EXPRESSION TYPE="INTEGER" NAME="MATH"> <EXPRNODE NAME="TYPE" VALUE="FLOAT"/> <EXPRNODE NAME="OPERATOR" VALUE="LT"/> <EXPRESSION TYPE="PROPERTY" NAME="IDENTITY"> <EXPRNODE NAME="PROP_NAME" VALUE="DISCOUNT"/> </EXPRESSION> <EXPRESSION TYPE="FLOAT" NAME="CONST"> <EXPRNODE NAME="VALUE" VALUE="20.00"/> </EXPRESSION> </EXPRESSION> <EXPRESSION TYPE="VOID" NAME="REMOVE"> <EXPRNODE NAME="PROP_NAME" VALUE="DISCOUNT"/> </EXPRESSION> </EXPRESSION>