NAG FL Interface
x07cbf (set_​exception_​mode)

Settings help

FL Name Style:


FL Specification Language:


1 Purpose

x07cbf sets the current IEEE exception halting mode.

2 Specification

Fortran Interface
Subroutine x07cbf ( exceptionmode)
Integer, Intent (In) :: exceptionmode(3)
C Header Interface
#include <nag.h>
void  x07cbf_ (const Integer exceptionmode[])
The routine may be called by the names x07cbf or nagf_ieee_set_exception_mode.

3 Description

x07cbf sets the current IEEE exception halting mode for the three common exceptions: overflow, divide-by-zero and invalid operation.

4 References

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

5 Arguments

1: exceptionmode(3) Integer array Input
On entry: each of the three elements of exceptionmode must contain any nonzero value if the corresponding condition should raise an exception, and contain 0 otherwise. exceptionmode(1) concerns floating-point overflow, exceptionmode(2) concerns floating-point division by zero, and exceptionmode(3) concerns floating-point invalid operation.

6 Error Indicators and Warnings

None.

7 Accuracy

Not applicable.

8 Parallelism and Performance

x07cbf is not threaded in any implementation.

9 Further Comments

None.

10 Example

See x07aaf.