NAG CL Interface
x07aac (is_​finite)

Settings help

CL Name Style:

1 Purpose

x07aac determines whether a floating-point number is finite.

2 Specification

#include <nag.h>
Nag_Boolean  x07aac (double x)
The function may be called by the names: x07aac, nag_ieee_is_finite or nag_is_finite.

3 Description

x07aac returns Nag_TRUE if and only if x is finite, and returns Nag_FALSE otherwise.

4 References

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

5 Arguments

1: x double Input
On entry: the number whose status is to be determined.

6 Error Indicators and Warnings


7 Accuracy

Not applicable.

8 Parallelism and Performance

Background information to multithreading can be found in the Multithreading documentation.
x07aac is not threaded in any implementation.

9 Further Comments

This function will return Nag_FALSE if the argument x is either infinite or a NaN (Not A Number).

10 Example

This program creates various infinities, NaNs and normal numbers and distinguishes between them.

10.1 Program Text

Program Text (x07aace.c)

10.2 Program Data


10.3 Program Results

Program Results (x07aace.r)