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.
The ord function's only parameter is an expression of ordinal type.
ord(false) returns 0
ord(true) returns 1
ord(21) returns 21
ord('A') returns 65 (assuming the ASCII or ANSI character set)
Operating Systems: All
Standard Pascal: Yes