LOGICAL — Convert to logical type#
-
LOGICAL(L, KIND)#
Converts one kind of
LOGICAL
variable to another.- Parameters:
L – The type shall be
LOGICAL
.KIND – (Optional) An
INTEGER
initialization expression indicating the kind parameter of the result.
- Returns:
The return value is a
LOGICAL
value equal toL
, with a kind corresponding toKIND
, or of the default logical kind ifKIND
is not given.
- Standard:
Fortran 90 and later
- Class:
Elemental function
- Syntax:
RESULT = LOGICAL(L [, KIND])
- See also: