X07AAF (PDF version)
X07 Chapter Contents
X07 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

X07AAF

+ Contents

    1  Purpose
    7  Accuracy

1  Purpose

X07AAF determines whether a floating-point number is finite.

2  Specification

FUNCTION X07AAF ( X)
LOGICAL X07AAF
REAL (KIND=nag_wp)  X

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.

8  Further Comments

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)


X07AAF (PDF version)
X07 Chapter Contents
X07 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2012