Clicky

Fortran Wiki
kind (Rev #1, changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #0 to #1: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

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

category: Intrinsics

Revision from April 26, 2009 19:00:47 by Jason Blevins
Forward in time (2 more) | See current | History | Rollback | View: Source | Linked from: Intrinsic procedures, Real precision

AltStyle によって変換されたページ (->オリジナル) /