FNABS(X)

Purpose

Returns the negative floating-point value -|X| .

Class

Function

Argument Type and Attributes

X
must be of type REAL.

Result Type and Attributes

Same as X.

Result Value

The result is a negative floating-point value of X, -|X|.

Examples

In the following example, the absolute content of a floating-point variable is negated.

    REAL(4) :: A, RES1
    REAL(8) :: D, RES2
 
    RES1 = FNABS(A)
    RES2 = FNABS(D)
IBM Copyright 2003