pTAL Reference Manual (H06.03+)
Built-In Routines
HP pTAL Reference Manual—523746-005
15-89
$UDBL
variable
is the identifier of a simple variable, array, simple pointer, structure, structure data
item, or structure pointer.
$TYPE returns an INT value that has a meaning as follows:
For a structure pointer, $TYPE returns the value 8, regardless of whether the structure
pointer points to a structure or to a substructure.
You can use $TYPE in LITERAL expressions and global initializations, because
$TYPE always returns a constant value.
$UDBL
$UDBL converts an unsigned INT value to an INT(32) value.
int-expression
is an unsigned INT expression.
$UDBL places the INT value in the low-order 16 bits of an INT(32) variable and sets
the high-order 16 bits to 0.
Value Meaning Value Meaning
0 Undefined 5 REAL
1STRING 6REAL(64)
2 INT 7 Substructure
3INT(32) 8Structure
4 FIXED 9 UNSIGNED
Example 15-88. $TYPE Routine
REAL(64) var1;
INT type1;
type1 := $TYPE (var1); ! Return 6 for REAL(64)
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
( )
VST113.vsd
$UDBL int-expression










