KIND(3f)

DESCRIPTION
KIND(X) returns the kind value of the entity X.

STANDARD
Fortran 95 and later

CLASS
Inquiry function

SYNTAX
K = KIND(X)

ARGUMENTS

X Shall be of type LOGICAL, INTEGER, REAL, COMPLEX or CHARACTER.

RETURN VALUE
The return value is a scalar of type INTEGER and of the default integer kind.

EXAMPLE
          program test_kind
            integer,parameter :: kc = kind(' ')
            integer,parameter :: kl = kind(.true.)

            print *, "The default character kind is ", kc
            print *, "The default logical kind is ", kl
          end program test_kind

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).