NAG CPP Interface
nagcpp::machine::precision (x02aj)

Settings help

CPP Name Style:



1 Purpose

precision returns ε, the value machine precision.

2 Specification

#include "x02/nagcpp_x02aj.hpp"
double precision()

3 Description

precision returns machine precision, computed as ε = 12 × b1-p , where b is the arithmetic base (see x02bhf (no CPP interface)) and p is the number of significant base-b digits (see x02bjf (no CPP interface)).
It is important to note that the definition of ε here differs from that in ISO Fortran 95 (1997).

4 References

ISO Fortran 95 (1997) ISO Fortran 95 programming language (ISO/IEC 1539–1:1997)

5 Arguments

None.

6 Exceptions and Warnings

None.

7 Accuracy

Not applicable.

8 Parallelism and Performance

Please see the description for the underlying computational routine in this section of the FL Interface documentation.

9 Further Comments

None.

10 Example

Examples for the NAG CPP Interface are not currently available.