The pred function

Description

The pred returns the ordinal value that is the predecessor of the parameter passed to it. It is an error if the parameter does not have a predecessor. The type of the value returned by this function is always the same as the The type of the parameter.

Parameter

The pred function's only parameter is an expression of ordinal type.

Example

   pred(true)    returns  false
   pred(21)      returns  20
   pred('A')     returns  '@' (assuming the ASCII or ANSI character set)

Portability

Operating Systems: All
Standard Pascal: Yes