2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 LOGICAL --- Convert to logical type
9 ***********************************
11 .. index:: LOGICAL, conversion, to logical
13 .. function:: LOGICAL(L, KIND)
15 Converts one kind of ``LOGICAL`` variable to another.
18 The type shall be ``LOGICAL``.
21 (Optional) An ``INTEGER`` initialization
22 expression indicating the kind parameter of the result.
25 The return value is a ``LOGICAL`` value equal to :samp:`{L}`, with a
26 kind corresponding to :samp:`{KIND}`, or of the default logical kind if
27 :samp:`{KIND}` is not given.
36 .. code-block:: fortran
38 RESULT = LOGICAL(L [, KIND])