pTAL Reference Manual (H06.08+)
Built-In Routines
HP pTAL Reference Manual—523746-006
15-50
$FLTR
$FLTR
$FLTR converts its argument to a REAL value and rounds the result.
expression
is an INT, INT(32), FIXED(fpoint ), REAL, or REAL(64) expression
If a FIXED expression has a nonzero fpoint, the compiler multiplies or divides the
result by the appropriate power of ten.
Example 15-39. $FLT Routine
REAL realnum;
INT(32) dblnum := 147D;
realnum := $FLT (dblnum); ! Return 147E0
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW Yes
Example 15-40. $FLTR Routine
REAL rrlnum;
INT(32) dblnum := 147D;
rrlnum := $FLTR (dblnum); ! Return rounded REAL value
expression
( )
VST090.vsd
$FLTR










