NAG FL Interface
x07bbf (create_​nan)

1 Purpose

x07bbf creates a NaN (Not A Number).

2 Specification

Fortran Interface
Subroutine x07bbf ( quiet, x)
Integer, Intent (In) :: quiet
Real (Kind=nag_wp), Intent (Out) :: x
C Header Interface
#include <nag.h>
void  x07bbf_ (const Integer *quiet, double *x)
The routine may be called by the names x07bbf or nagf_ieee_create_nan.

3 Description

x07bbf sets x to be a quiet or a signalling NaN (Not A Number).

4 References

IEEE (2008) Standard for Floating-Point Arithmetic IEEE Standard 754-2008 IEEE, New York.

5 Arguments

1: quiet Integer Input
On entry: determines whether a quiet or a signalling NaN is to be created. If quiet=1, the returned NaN is quiet, otherwise it is signalling. See reference IEEE (2008) for the distinction between the two kinds.
2: x Real (Kind=nag_wp) Output
On exit: the required NaN value.

6 Error Indicators and Warnings

None.

7 Accuracy

Not applicable.

8 Parallelism and Performance

x07bbf is not threaded in any implementation.

9 Further Comments

None.

10 Example

See Section 10 in x07aaf.