Next: Input and Output
Up: Kind Functions and Available
Previous: Kind Functions and Available
PROGRAM WotKind
IMPLICIT NONE
INTEGER :: old, exponent, curr
old = SELECTED_INT_KIND(1)
DO exponent = 2, 32
curr = SELECTED_INT_KIND(exponent)
IF ( curr .ne. old ) THEN
PRINT*, "Kind number", old, " represents numbers &
&upto 10**",exponent-1
old = curr
END IF
IF ( curr .eq. -1 ) EXIT
END DO
PRINT*, "Default kind has kind number", SELECTED_INT_KIND(2)
END PROGRAM WotKind
Next: Input and Output
Up: Kind Functions and Available
Previous: Kind Functions and Available
©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997Not for commercial use.