Sun Studio 12: Fortran Library Reference

2.2.1.2 Elemental Functions

The module IEEE_ARITHMETIC contains the following elemental functions for real X and Y for which IEEE_SUPPORT_DATATYPE(X) and IEEE_SUPPORT_DATATYPE(Y) are true.

Function  

Description  

IEEE_CLASS(X)

IEEE class. 

IEEE_COPY_SIGN(X,Y)

IEEE copysign function. 

IEEE_IS_FINITE(X)

Determine if value is finite. 

IEEE_IS_NAN(X)

Determine if value is IEEE Not-a-Number 

IEEE_IS_NORMAL(X)

Determine if a value is normal. 

IEEE_IS_NEGATIVE(X)

Determine if value is negative. 

IEEE_LOGB(X)

Unbiased exponent in the IEEE floating point format. 

IEEE_NEXT_AFTER(X,Y)

Returns the next representable neighbor of X in the direction toward Y.

IEEE_REM(X,Y)

The IEEE REM remainder function, X - Y*N where N is the integer nearest to the exact value of X/Y.

IEEE_RINT(X)

Round to an integer value according to the current rounding mode. 

IEEE_SCALB(X,I)

Returns X*2**I

IEEE_UNORDERED(X,Y)

IEEE unordered function. True if X or Y is a NaN and false otherwise.

IEEE_VALUE(X,CLASS)

Generate an IEEE value.