XL Fortran for AIX 8.1

Language Reference

FNABS(X)

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

Parameters

X
must be of type REAL.

Result Type and Attributes

Same as X.

Results

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)


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]