Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

IEEE_QUIET_GT

Elemental Module Intrinsic Function (Generic): Performs a non-signaling comparison for greater than. This is equivalent to the IEEE compareQuietGreater operation.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

result = IEEE_QUIET_GT (a,b)

a

(Input) Must be of type REAL.

b

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

Results

The result type is default LOGICAL. It has the value true if a compares greater than b. If a or b is a NaN, the result is false. IEEE_INVALID signals if either a or b is a signaling NaN, otherwise no exception is signaled.

This is the compareQuietGreater operation as specified in the ISO/IEC 60559:2020 standard.

Example

The result value of IEEE_QUIET_GT (3.7, IEEE_VALUE (0.0, IEEE_QUIET_NAN)) is false and no exception is signaled.