Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

IEEE_GET_UNDERFLOW_MODE

Intrinsic Module Subroutine (Generic): Stores the current underflow mode. This is an impure subroutine.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

CALL IEEE_GET_UNDERFLOW_MODE (gradual)

gradual

(Output) Must be logical scalar.

The result is true if the current underflow mode is gradual (IEEE subnormals are allowed) and false if the current underflow mode is abrupt (underflowed results are set to zero).

Example

Consider the following:

USE, INTRINSIC :: IEEE_EXCEPTIONS
LOGICAL GRAD
...
CALL IEEE_GET_UNDERFLOW_MODE(GRAD)
IF (GRAD) THEN ! underflows are gradual
...
ELSE ! underflows are abrupt
...
END IF