[UP]


Manual Reference Pages  - kind (3)

NAME

kind(3f) - [FORTRAN:INTRINSIC:KIND INQUIRY] Kind of an entity

SYNTAX

k = kind(x)

DESCRIPTION

kind(x) returns the kind value of the entity 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

Sample program:

    program demo_kind
    implicit none
      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 demo_kind

STANDARD

[[Fortran 95]] and later

CLASS

[[Inquiry function]]


kind (3) March 11, 2021
Generated by manServer 1.08 from bd63c6d9-2bac-44c0-9f4f-d40f20c9ea68 using man macros.