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

ID 767251
Date 11/07/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_SIGNBIT

Elemental Module Intrinsic Function (Generic): Tests to determine if the argument's sign bit is set. This is equivalent to the IEEE SignMinus operation.

Module

USE, INTRINSIC :: IEEE_ARITHMETIC

Syntax

result = IEEE_SIGNBIT (x)

x

(Input) Must be of type REAL.

Results

The result is a scalar of type default logical. The result has the value .true. if the sign bit of x is set (nonzero); otherwise, it has the value .false.. No exception is signaled even if x has the value of a signaling NaN.

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

Example

The result of IEEE_SIGNBIT (-3.14) is .true..