|
|
INTEGER( SELECTED_INT_KIND(#digits) ) :: VarName or INTEGER( KIND=SELECTED_INT_KIND(#digits) ) :: VarNamedefines variables that can represents ALL integers that can be written with "#digit" digits   |
Examples:
INTEGER( SELECTED_INT_KIND(2) ) A !! Large enough to store !! all integers of 2 digits INTEGER( SELECTED_INT_KIND(4) ) A2 !! Large enough to store !! all integers of 4 digits |
The meaning of floating point precision is different than that of integer numbers.
REAL ( SELECTED_REAL_KIND(prec, magn) ) :: VarName or REAL ( KIND=SELECTED_REAL_KIND(prec, magn) ) :: VarNamedefines variables that can represents ALL real numbers that has at least "prec" number of digits precision and a magnitude in the range of 10-magn and 10magn   |
Examples:
REAL ( SELECTED_REAL_KIND(14, 50) ) A Variable A will have at least 14 digits precision and can represent values between 10-50 and 1050 |