Clicky

Fortran Wiki
kind (Rev #2, changes)

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

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

Description

kind(x) returns the kind value of the entity x.

Standard

(削除) Fortran 95 and later (削除ここまで)(追記) 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 (削除ここまで)(追記) intrinsics (追記ここまで)

Revision from April 30, 2009 22:49:58 by Jason Blevins
Forward in time (to current) | Back in time (1 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, Real precision

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