TAL Reference Manual

Standard Functions
TAL Reference Manual526371-001
14-15
$EFLT Function
$EFLT Function
The $EFLT function returns a REAL(64) value from an INT, INT(32), FIXED(fpoint), or
REAL expression.
expression
is an INT, INT(32), FIXED(fpoint), or REAL 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 $EFLT Function
In this example, $EFLT returns a REAL(64) value from a FIXED(3) expression:
REAL(64) dbrlnum; !Declare variables
FIXED(3) fixnum := 12345.678F;
dbrlnum := $EFLT (fixnum); !Return 12345678L-3
$EFLTR Function
The $EFLTR function returns a REAL(64) value from an INT, INT(32), FIXED(fpoint), or
REAL expression and applies rounding to the result.
expression
is an INT, INT(32), FIXED(fpoint), or REAL expression.
Usage Considerations
If a FIXED expression has a nonzero fpoint, the compiler multiplies or divides the result
by the appropriate power of ten.
$EFLT ( expression
)
VST1411.vsd
$EFLTR
(
expression
)
VST1412.vsd