6.8.2.2 Character Function

Syntax

character (expression)

Description

The character function returns expression converted to the character type. Within expressions, character values are equivalent to string values. The character function is included for completeness.

If the data type of expression is string or character, it is returned unchanged. All other data types are converted to a character string by the default formatting set.

Example

character (5)