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