This question applies to Fortran, more precisely the compiler gfortran.
I need to know how I can convert a real(kind=8) array to a real(kind=4) array such that all reasonable digits in each entry of the array remain.
Obviously, a type cast from kind=8 to kind=4 implies a loss of information. Hence, what I am looking for is the proper way to lose just as much information as necessary - but not more.