The ord function

Description

The ord function returns the ordinal value of the parameter passed to it. The type of the value returned by this function is always integer.

Parameter

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

Example

   ord(false)   returns  0
   ord(true)    returns  1
   ord(21)      returns  21
   ord('A')     returns  65 (assuming the ASCII or ANSI character set)

Portability

Operating Systems: All
Standard Pascal: Yes