PS TEXT FORMAT Reference Manual
Syntax Summary
11387 Tandem Computers Incorporated A-15
Functions The following are brief descriptions of the TFORM-supplied functions you
can use in expressions. In this syntax, b-exp represents a Boolean
expression, i-exp is an integer expression, n-exp is a numeric (either an
integer or an integer-and-fraction combination) expression, and s-exp is a
string expression; exp is an expression of any type.
ABS ( n-ex )
returns the absolute value of nex.
ARG ( i-exp [ ,b-exp ] )
returns the specified argument value.
CHR ( exp )
returns an ASCII character.
DEFINE ( var )
returns "true" Boolean value (the number 1) if variable exists.
FIND ( s-exp1 ,s-exp2 [ ,i-exp ] )
returns the location of s-exp2 within s-exp1.
JUSTIFY ( s-exp ,n-exp [ ,s-exp [ ,s-exp ] ] )
returns a string justified in a field.
LENGTH ( exp )
returns the number of characters in exp.
LOWER ( s-exp )
returns the string with all letters in lowercase.
MAX ( n-exp ,n-exp )
returns the larger of two values.
MIN ( n-exp ,n-exp )
returns the smaller of two values.
MODULO ( n-exp ,i-exp )
returns the remainder of n-exp/i-exp.
NUMERIC ( exp [ ,i-exp ] )
returns the numeric value of exp, rounded to i-exp digits.