TAL Reference Manual
Standard Functions
TAL Reference Manual—526371-001
14-20
$FLTR Function
$FLTR Function
The $FLTR function returns a REAL value from an INT, INT(32), FIXED(fpoint), or
REAL(64) expression and applies rounding to the result.
expression
is an INT, INT(32), FIXED(fpoint), REAL, or REAL(64) expression.
Usage Consideration
If a FIXED expression has a nonzero fpoint, the compiler multiplies or divides the result
by the appropriate power of ten.
Example of $FLTR Function
In this example, $FLTR returns a rounded REAL value from an INT(32) expression:
REAL rrlnum; !Declare variables
INT(32) dblnum := 147D;
rrlnum := $FLTR (dblnum); !Return rounded REAL value
$HIGH Function
The $HIGH function returns an INT value that is the high-order 16 bits of an INT(32)
expression.
dbl-expression
is an INT(32) expression.
Example of $HIGH Function
In this example, $HIGH returns the high-order word of an INT(32) expression:
INT intnum; !Declare variables
INT(32) dblnum := 65538D;
intnum := $HIGH (dblnum); !Return 1
$FLTR
(
expression
)
VST1419.vsd
$HIGH
(
dbl-expression
)
VST1420.vsd