Fortran: integer*4 vs integer(4) vs integer(kind=4)
In Fortran >=90, the best approach is use intrinsic functions to specify the precision you need — this guarantees both portability and that you get the precision that you need. For example, to obtain integers i and my_int that will support at least 8 decimal digits, you could use: integer, parameter :: RegInt_K = selected_int_kind … Read more