06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

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.

Intrinsic Procedures 9<br />

write (*,*) 'env var value = ', val (1:len)<br />

end<br />

When the above program is invoked, the following line is displayed:<br />

enter the name of the environment variable<br />

The following shows an example of what could be displayed if you enter "HOME".<br />

• On a Linux system:<br />

env var value = /home/our_space/usr4<br />

• On a Windows system:<br />

env var value = C:/<br />

The following shows an example of what could be displayed if you enter "PATH".<br />

• On a Linux system:<br />

env var length = 307 truncated to 40<br />

env var value = /site/our_space/usr4/progs/build_area<br />

• On a Windows system:<br />

env var length = 829 truncated to 40<br />

env var value = C:\OUR_SPACE\BUILD_AREA\build_objects\<br />

HUGE<br />

Description:<br />

Syntax:<br />

Class:<br />

Arguments:<br />

Results:<br />

Returns the largest number in the model representing the same type and kind<br />

parameters as the argument.<br />

result = HUGE (x)<br />

Inquiry function; Generic<br />

x must be of type integer or real; it can be scalar or array valued.<br />

The result is a scalar of the same type and kind parameters as x. If x is of type<br />

integer, the result has the value r q – 1. If x is of type real, the result has the value<br />

(1 – b –p )b emax .<br />

Integer parameters r and q are defined in “Model for Integer Data”; real<br />

parameters b, p, and e max are defined in “Model for Real Data”.<br />

Example<br />

If X is of type REAL(4), HUGE (X) has the value (1 – 2 –24 ) x 2 128 .<br />

9-69

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

Saved successfully!

Ooh no, something went wrong!