pTAL Reference Manual (H06.08+)

Built-In Routines
HP pTAL Reference Manual523746-006
15-15
Minimum and Maximum Routines
Minimum and Maximum Routines
Minimum routines return the minimum of two arguments. Maximum routines return the
maximum of two arguments.
Arithmetic Routines
Carry and Overflow Routines
FIXED-Expression Routines
Table 15-6. Built-In Minimum and Maximum Routines
Arguments are of the type ... Minimum Maximum
Unsigned INT $LMIN
$LMAX
Signed INT, INT(32), FIXED(fpoint ), REAL, or
REAL(64)
$MIN $MAX
Table 15-7. Built-In Arithmetic Routines
Routine Description
$ABS
Returns the absolute value of its argument
$COMP
Returns the ones complement of its argument
$UDIVREM16
Divides an INT(32) dividend by an INT divisor to produce an INT quotient
and an INT remainder
$UDIVREM32
Divides an INT(32) dividend by an INT divisor to produce an INT(32)
quotient and an INT remainder
Table 15-8. Built-In Carry and Overflow Routines
Routine Indicates whether ...
$CARRY
An arithmetic carry occurred during certain arithmetic operations or during
execution of a SCAN or RSCAN statement
$OVERFLOW
An overflow occurred during certain arithmetic operations
Table 15-9. Built-In FIXED-Expression Routines
Routine Description
$POINT
Returns the fpoint value of a FIXED expression
$SCALE
Moves the position of the implied decimal point by changing a
FIXED(fpoint ) value