(j3.2006) OUT_OF_RANGE

Bill Long longb
Tue Feb 6 13:42:36 EST 2018


The OUT_OF_RANGE function for X a REAL signaling NaN and MOLD also of type REAL that supports NaN values, returns .false. according to 

"the result is true if and only if the value of X is an IEEE infinity or NaN that is not supported by objects of the type and kind of MOLD,?

However, the description of the function is:

" Whether a value cannot be converted safely.?

I got a question about the intent of the word ?safely? when the function returns .false. for a conversion that would result in an IEEE exception.   I assume we intended for the function to return .false.  (that is was the Result Value specification says), but then what is the meaning of ?safely? in this context?

Cheers,
Bill



Bill Long                                                                       longb at cray.com
Principal Engineer, Fortran Technical Support &   voice:  651-605-9024
Bioinformatics Software Development                      fax:  651-605-9143
Cray Inc./ 2131 Lindau Lane/  Suite 1000/  Bloomington, MN  55425





More information about the J3 mailing list