pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
Minimum and Maximum Routines
Minimum routines return the minimum of two arguments. Maximum routines return the maximum
of two arguments.
Table 63 Built-In Minimum and Maximum Routines
MaximumMinimumArguments are of the type ...
$LMAX$LMINUnsigned INT
$MAXSRLSigned INT, INT(32), FIXED(fpoint ), REAL, or
REAL(64)
Arithmetic Routines
Table 64 Built-In Arithmetic Routines
DescriptionRoutine
Returns the absolute value of its argument$ABS
Returns the one’s complement of its argument$COMP
Divides an INT(32) dividend by an INT divisor to produce an INT quotient and
an INT remainder
$UDIVREM16
Divides an INT(32) dividend by an INT divisor to produce an INT(32) quotient
and an INT remainder
$UDIVREM32
Carry and Overflow Routines
Table 65 Built-In Carry and Overflow Routines
Indicates whether ...Routine
An arithmetic carry occurred during certain arithmetic operations or during
execution of a SCAN or RSCAN statement
$CARRY
An overflow occurred during certain arithmetic operations$OVERFLOW
FIXED-Expression Routines
Table 66 Built-In FIXED-Expression Routines
DescriptionRoutine
Returns the fpoint value of a FIXED expression$POINT
Moves the position of the implied decimal point by changing a FIXED(fpoint )
value
$SCALE
Variable-Characteristic Routines
Variable-characteristic routines return INT values that represent various characteristics of variables.
Table 67 Built-In Variable-Characteristic Routines
Returns an INT value that is the ...Routine
Length, in bits, of a variable$BITLENGTH
Offset, in bits, of a structure data item from the address of the zeroth structure
occurrence
$BITOFFSET
Length, in bytes, of a variable$LEN
Number of elements in an array$OCCURS
Nonatomic Operations 285