[UP]


Manual Reference Pages  - kind (3)

NAME

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

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class

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
      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 18, 2019
Generated by manServer 1.08 from 17712ce8-b558-44c7-9707-e134cb565549 using man macros.