24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

Consider the following program:<br />

PROGRAM TESTSIGN<br />

REAL X, Y, Z<br />

X=1.0<br />

Y=-0.0<br />

Z=SIGN(X,Y)<br />

PRINT *,Z<br />

END PROGRAM TESTSIGN<br />

The output from this example depends on the invocation command and the<br />

-qxlf90 suboption that you specify. For example:<br />

Invocation Command/xlf90 Suboption<br />

xlf95 -1.0<br />

xlf95 -qxlf90=signedzero -1.0<br />

xlf95 -qxlf90=nosignedzero 1.0<br />

xlf90 1.0<br />

xlf 1.0<br />

Output<br />

Related In<strong>for</strong>mation<br />

See the SIGN in<strong>for</strong>mation in the Intrinsic Procedures section and the Arrays Concepts<br />

section of the <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> Language Reference.<br />

264 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!