NAG Library Routine Document
X07AAF
1 Purpose
X07AAF determines whether a floating-point number is finite.
2 Specification
3 Description
X07AAF returns .TRUE. if and only if
X is finite, and returns .FALSE. otherwise.
4 References
IEEE (2008) Standard for Floating-Point Arithmetic IEEE Standard 754-2008 IEEE, New York.
5 Parameters
- 1: X – REAL (KIND=nag_wp)Input
On entry: the number whose status is to be determined.
6 Error Indicators and Warnings
None.
7 Accuracy
Not applicable.
This routine will return .FALSE. if the parameter
X is either infinite or a NaN (Not A Number).
9 Example
This program creates various infinities, NaNs and normal numbers and distinguishes between them.
9.1 Program Text
Program Text (x07aafe.f90)
9.2 Program Data
None.
9.3 Program Results
Program Results (x07aafe.r)