[J3] defining a parameter to be signaling NaN?

Clune, Thomas L. (GSFC-6101) thomas.l.clune at nasa.gov
Tue May 22 08:39:56 EDT 2018


A colleague was asking me about why the following code is not conforming (assuming the appropriate USE statements):


real, parameter :: my_snan = ieee_value(0.0,ieee_signaling_nan)


The standard does note that the types and procedures in the intrinsic IEEE modules are not themselves intrinsic, and thus the expression is not suitable for defining a PARAMETER.

First, is this explanation correct?

Second, presuming that the explanation is correct, was this our intent? Is there a reasonably way to set a parameter to a signaling nan value, or do we need to propagate the longer expression to various parts of our code? Or could additional intrinsics be defined such as IEEE_SIGNALING_NAN_REAL32?

Thanks,

- Tom

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20180522/26956847/attachment.html>


More information about the J3 mailing list