Purpose
Converts between objects of type
logical with different kind type parameter values.
Argument type and attributes
- L
- An INTENT(IN) LOGICAL
- KIND (optional)
- An INTENT(IN) INTEGER scalar.
The actual argument corresponding to KIND must
be a constant expression.
Result type and attributes
- Logical.
- If KIND is present, the kind type parameter
is that specified by KIND; otherwise, the
kind type parameter is that of the default logical type.
Result value
The value is that of L.
Examples
LOGICAL (L
.OR. .NOT. L) has the value .TRUE. and is
of type default logical, regardless of the kind type parameter of
the logical variable L.