Description: | Converts the logical value of the argument to a logical value with different kind parameters. | ||
Class: | Elemental function; Generic | ||
Arguments: | L | Must be of type logical. | |
KIND (opt) | Must be a scalar integer initialization expression. | ||
Results: | The result
type is logical. If KIND is present, the kind parameter is that
specified by KIND; otherwise, the kind parameter is that of default
logical. The result value is that of L.
The setting of compiler options specifying integer size can affect this function. |
Examples
LOGICAL (L .OR. .NOT. L) has the value true and is of type default logical regardless of the kind parameter of logical variable L.
LOGICAL (.FALSE., 2) has the value false, with the kind parameter of INTEGER(KIND=2).