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

ID 767251
Date 9/08/2022
Public

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

Document Table of Contents

IEEE_MIN_NUM

Inquiry Module Intrinsic Function (Generic): Returns the minimum of two values. This is equivalent to the IEEE minNum operation.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

result = IEEE_MIN_NUM (x,y)

x

(Input) Must be of type REAL.

y

(Input) Must be of type REAL with the same kind type parameter as x.

Results

The result type is REAL with the same kind type parameter as x. The result is x if x < y. The result is y if y < x.

If one of the arguments is a quiet NaN, the result is the value of the argument which is not a quiet NaN. If either or both of the arguments is a signaling NaN, the result is a NaN and IEEE_INVALID signals. Otherwise, the result value is that of either x or y (processor dependent). No exceptions are signaled unless x or y is a signaling NaN.

This is the minNum operation as specified in the ISO/IEC/IEEE 60559:2011 standard.

Example

The result value of IEEE_MIN_NUM (3.7, IEEE_VALUE (0.0, IEEE_QUIET _NAN)) is 3.7. No exceptions are signaled.