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)